This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

GeoDistance

GeoDistance[{lat1, long1}, {lat2, long2}]
gives the geodesic distance in meters between latitude-longitude positions on the Earth.
GeoDistance[pos1, pos2]
gives the distance between positions specified by position objects.
  • Latitudes and longitudes are given in degrees or as DMS lists.
  • GeoDistance["latlong1", "latlong2"] gives the distance between positions specified by latitudes and longitudes given as strings.
  • GeoDistance gives the distance between positions projected onto a reference ellipsoid; heights are ignored.
  • GeoDistance[pos1, pos2] by default uses the reference ellipsoid associated with the datum for pos1.
  • The algorithm used by GeoDistance can be specified by setting the Method option to one of the following values: "Vincenty75", "Robbin61", "ExtendedNewtonRaphson".
Distance between two positions on the reference ellipsoid:
Distance between two fully specified geodetic positions:
Distance between two positions on the reference ellipsoid:
In[1]:=
Click for copyable input
Out[1]=
 
Distance between two fully specified geodetic positions:
In[1]:=
Click for copyable input
Out[1]=
New in 7