|
SOLUTIONS
|
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
.
New in 7
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
