returns the list of geodesic distances between consecutive pairs of locations.

Details and Options

  • The locations loci in GeoDistanceList[{loc1,,locn}] can be given as pairs {lat,lon} in degrees, GeoPosition objects, geographic Entity objects, or any other specification of a location.
  • The result is returned as a QuantityArray object with dimensions of length. The unit used can be chosen with the option UnitSystem, which has $UnitSystem as its default value.
  • If the input list of locations has length n, the resulting list of distances has length n-1.
  • GeoDistanceList has option DistanceFunction, with the following settings:
  • "Boundary"minimum distance between any points in regions
    "Center"distance between centers of regions
    "SignedBoundary"distance to boundary, negative for interior points
  • GeoDistanceList by default uses the setting DistanceFunction->"Center". This is a different default from the one for GeoDistance.


open allclose all

Basic Examples  (1)

List of consecutive geodesic distances between cities:

Click for copyable input

Convert the QuantityArray object to its normal form:

Click for copyable input

Draw the three geodesic segments on a map:

Click for copyable input

Scope  (3)

Options  (2)

Properties & Relations  (3)

Possible Issues  (1)

See Also

GeoDistance  TravelDistanceList  TravelDistance  Partition  QuantityArray

Introduced in 2016