GeoDistanceList
✖
GeoDistanceList
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.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
List of consecutive geodesic distances between cities:

https://wolfram.com/xid/0mldu1ezodru-bz0y01

Convert the QuantityArray object to its normal form:

https://wolfram.com/xid/0mldu1ezodru-ta1hlb

Draw the three geodesic segments on a map:

https://wolfram.com/xid/0mldu1ezodru-o563lt

Scope (3)Survey of the scope of standard use cases
Specify locations as pairs {lat,lon} in degrees:

https://wolfram.com/xid/0mldu1ezodru-rny7py

Latitude and longitude can also be given as DMS strings:

https://wolfram.com/xid/0mldu1ezodru-85cp3h

Or as Quantity angles:

https://wolfram.com/xid/0mldu1ezodru-7nw40v

Use GeoPosition objects:

https://wolfram.com/xid/0mldu1ezodru-hh2cdr


https://wolfram.com/xid/0mldu1ezodru-ztpfzh

Use other forms of geodetic position:

https://wolfram.com/xid/0mldu1ezodru-q2v4do

Use Entity objects:

https://wolfram.com/xid/0mldu1ezodru-jqvc16

Options (2)Common values & functionality for each option
DistanceFunction (1)
For extended entities, the distances are computed between center points by default:

https://wolfram.com/xid/0mldu1ezodru-jl6b18


https://wolfram.com/xid/0mldu1ezodru-7cwjy8

Compute the minimum distance between respective boundaries:

https://wolfram.com/xid/0mldu1ezodru-qop23v

UnitSystem (1)
The default unit of the result is determined by the value of $UnitSystem:

https://wolfram.com/xid/0mldu1ezodru-wax9nb


https://wolfram.com/xid/0mldu1ezodru-onpb73


https://wolfram.com/xid/0mldu1ezodru-z4edak

Properties & Relations (3)Properties of the function, and connections to other functions
GeoDistanceList is basically equivalent to a combination of Subsequences and GeoDistance:

https://wolfram.com/xid/0mldu1ezodru-scrboi


https://wolfram.com/xid/0mldu1ezodru-5o9qzq


https://wolfram.com/xid/0mldu1ezodru-5do1u3

GeoDistanceList reports geodesic distance. TravelDistanceList reports distance by road:

https://wolfram.com/xid/0mldu1ezodru-b3vjbf


https://wolfram.com/xid/0mldu1ezodru-1d6cqu

GeoDistanceList[{loc}] returns an empty list:

https://wolfram.com/xid/0mldu1ezodru-thvh7x

GeoDistanceList[{}] is not defined:

https://wolfram.com/xid/0mldu1ezodru-y94nsv


Possible Issues (1)Common pitfalls and unexpected behavior
The default value of the option DistanceFunction is "Boundary" for GeoDistance, but "Center" for GeoDistanceList:

https://wolfram.com/xid/0mldu1ezodru-67w6lf


https://wolfram.com/xid/0mldu1ezodru-9e11kt

The default choice "Center" computes distances between centers:

https://wolfram.com/xid/0mldu1ezodru-fh0pb2

The choice "Boundary" gives zero distance for neighboring countries:

https://wolfram.com/xid/0mldu1ezodru-lv5yql

Wolfram Research (2016), GeoDistanceList, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoDistanceList.html.
Text
Wolfram Research (2016), GeoDistanceList, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoDistanceList.html.
Wolfram Research (2016), GeoDistanceList, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoDistanceList.html.
CMS
Wolfram Language. 2016. "GeoDistanceList." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoDistanceList.html.
Wolfram Language. 2016. "GeoDistanceList." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoDistanceList.html.
APA
Wolfram Language. (2016). GeoDistanceList. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoDistanceList.html
Wolfram Language. (2016). GeoDistanceList. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoDistanceList.html
BibTeX
@misc{reference.wolfram_2025_geodistancelist, author="Wolfram Research", title="{GeoDistanceList}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/GeoDistanceList.html}", note=[Accessed: 16-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_geodistancelist, organization={Wolfram Research}, title={GeoDistanceList}, year={2016}, url={https://reference.wolfram.com/language/ref/GeoDistanceList.html}, note=[Accessed: 16-April-2025
]}