TravelDistanceList

TravelDistanceList[{loc1,loc2,,locn}]

returns the list {TravelDistance[loc1,loc2],,TravelDistance[locn-1,locn]}.

Details and Options

  • The locations loci in TravelDistanceList[{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 length units.
  • If the input list of locations has length n, the resulting list of distances has length n-1.

Examples

open allclose all

Basic Examples  (1)

List of consecutive driving 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]=

Scope  (2)

Options  (2)

Properties & Relations  (3)

See Also

TravelDistance  GeoDistanceList  Partition  QuantityArray

Introduced in 2016
(10.4)