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 allclose all

Basic Examples  (2)

Forward azimuthal angle between two positions on the reference ellipsoid:

Azimuth angle between two fully specified geodetic positions:

Scope  (4)

Azimuth angle between any two points on the Earth, using the parameters of the default datum "ITRF00":

Angles can also be specified as DMS strings:

Direction between geodetic positions, in different formats:

Height and time information is ignored in GeoDirection computations:

Direction between points in different datums. The computation is performed after changing the datum of the second point to the datum of the first:

The difference is very small:

Properties & Relations  (8)

GeoDirection is not a symmetric function:

GeoDirection is a partial inverse of GeoDestination:

GeoDirection returns part of the information returned by GeoDisplacement:

Compute bearings between a list of points:

Construct points on a geodesic circle, starting with regular bearings:

Azimuths between points of the circle increase, modulo angle determination:

Construct multiple points along a geodesic, at regular distance intervals:

Bearing does not stay constant along a geodesic:

GeoDirection is not a smooth function for nearly antipodal points:

Compare with the corresponding results on the surface of a sphere:

Initial bearings of geodesics connecting antipodal pairs of points are complementary:

Graphically:

Wolfram Research (2008), GeoDirection, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoDirection.html (updated 2014).

Text

Wolfram Research (2008), GeoDirection, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoDirection.html (updated 2014).

CMS

Wolfram Language. 2008. "GeoDirection." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/GeoDirection.html.

APA

Wolfram Language. (2008). GeoDirection. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoDirection.html

BibTeX

@misc{reference.wolfram_2024_geodirection, author="Wolfram Research", title="{GeoDirection}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/GeoDirection.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_geodirection, organization={Wolfram Research}, title={GeoDirection}, year={2014}, url={https://reference.wolfram.com/language/ref/GeoDirection.html}, note=[Accessed: 21-November-2024 ]}