Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


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

Details and OptionsDetails and Options

  • The locations in GeoDistanceList[{loc1,,locn}] can be given as pairs 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.

ExamplesExamplesopen allclose all

Basic Examples  (1)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
Introduced in 2016