TravelDistance[{loc1,loc2,…}]
gives the estimated distance for travel from loc1 to loc2, ….


TravelDistance
TravelDistance[{loc1,loc2,…}]
gives the estimated distance for travel from loc1 to loc2, ….
Details and Options

- The locations loci can be geographic entities, GeoPosition objects, or strings specifying addresses.
- Possible options include:
-
TravelMethod "Driving" method of transportation to assume UnitSystem $UnitSystem unit system to be used in output - TravelDistance[loc1,loc2] is equivalent to TravelDistance[{loc1,loc2}].
- TravelDistance[loc2,loc1] is not necessarily the same as TravelDistance[loc1,loc2] as a result of one-way streets and similar issues.
Examples
open all close allScope (4)
Distance to travel between two geographic locations:
Use GeoPosition objects to define locations:
Options (2)
TravelMethod (1)
TravelDistance uses "Driving" as default method of transportation:
UnitSystem (1)
The default unit system is given by $UnitSystem, usually determined by your location, in this case "Imperial":
Properties & Relations (2)
Compute the estimated travel distance between two locations:
It can also be computed with TravelDirections:
Or as a property of a TravelDirectionsData object:
Compute the distances between consecutive pairs of locations:
They can also be obtained by combining Partition and TravelDistance, though less efficiently:
Related Guides
History
Text
Wolfram Research (2015), TravelDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/TravelDistance.html.
CMS
Wolfram Language. 2015. "TravelDistance." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TravelDistance.html.
APA
Wolfram Language. (2015). TravelDistance. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TravelDistance.html
BibTeX
@misc{reference.wolfram_2025_traveldistance, author="Wolfram Research", title="{TravelDistance}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/TravelDistance.html}", note=[Accessed: 17-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_traveldistance, organization={Wolfram Research}, title={TravelDistance}, year={2015}, url={https://reference.wolfram.com/language/ref/TravelDistance.html}, note=[Accessed: 17-August-2025]}