BUILT-IN MATHEMATICA SYMBOL

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.

Details and OptionsDetails and Options

• 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.
• Position objects in GeoDistance[pos1, pos2] can be given as GeoPosition, GeoPositionXYZ, GeoPositionENU, or GeoGridPosition objects.
• 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 .
• GeoDistance and GeoDirection solve the geodetic inverse problem.
• The algorithm used by GeoDistance can be specified by setting the Method option to one of the following values: , , or .

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Distance between two positions on the reference ellipsoid:

 Out[1]=

Distance between two fully specified geodetic positions:

 Out[1]=