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)

GeoDistanceList

GeoDistanceList[{loc1,loc2,,locn}]
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:

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

Convert the QuantityArray object to its normal form:

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

Draw the three geodesic segments on a map:

In[3]:=
Click for copyable input
Out[3]=
Introduced in 2016
(10.4)