GeoDirection

GeoDirection[{lat1,lon1},{lat2,lon2}]

gives the azimuthal direction from one latitude-longitude position on the Earth to another.

GeoDirection[loc1,loc2]

gives the azimuthal direction between locations specified by position objects or geographic entities.

Details

  • Geo direction is also known as azimuth or bearing.
  • GeoDirection[loc1,loc2] gives the clockwise angle measured at loc1 between true north and the geodesic from loc1 to loc2. Heights are ignored.
  • The result is returned as a Quantity angle with "AngularDegrees" unit.
  • Latitudes and longitudes can be given as numbers in degrees, as DMS strings, or as Quantity angles.
  • Position objects in GeoDirection[loc1,loc2] can be given as GeoPosition, GeoPositionXYZ, GeoPositionENU, or GeoGridPosition objects.
  • GeoDirection[loc1,loc2] by default uses the reference ellipsoid associated with the datum for loc1.
  • GeoDirection and GeoDistance solve the geodetic inverse problem.

Examples

open all close all

Basic Examples  (2)

Forward azimuthal angle between two positions on the reference ellipsoid:

In[1]:=
Click for copyable input
Out[1]=

Azimuth angle between two fully specified geodetic positions:

In[1]:=
Click for copyable input
Out[1]=

Scope  (4)

Properties & Relations  (8)

Introduced in 2008
(7.0)
|
Updated in 2014
(10.0)