GeoDirection

GeoDirection[{lat1, long1}, {lat2, long2}]
gives the azimuthal direction from one latitude-longitude position on the Earth to another.

GeoDirection[pos1, pos2]
gives the azimuthal direction between positions specified by position objects.

Details and OptionsDetails and Options

  • Latitudes, longitudes, and directions are given in degrees.
  • GeoDirection["latlong1", "latlong2"] gives the direction between positions specified by latitudes and longitudes given as strings.
  • Position objects in GeoDirection[pos1, pos2] can be given as GeoPosition, GeoPositionXYZ, GeoPositionENU, or GeoGridPosition objects.
  • GeoDirection gives the angle in degrees relative to due north to get from one position to the other, when projected onto a reference ellipsoid. Heights are ignored.
  • GeoDirection[pos1, pos2] by default uses the reference ellipsoid associated with the datum for .
  • GeoDirection and GeoDistance solve the geodetic inverse problem.
  • The algorithm used by GeoDirection can be specified by setting the Method option to one of the following values: , , or .

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Forward azimuthal angle between two positions on the reference ellipsoid:

In[1]:=
Click for copyable input
Out[1]=
New in 7
New to Mathematica? Find your learning path »
Have a question? Ask support »