TravelDistance
✖
TravelDistance
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 allclose allBasic Examples (1)Summary of the most common use cases
Scope (4)Survey of the scope of standard use cases
Distance to travel between two geographic locations:

https://wolfram.com/xid/0n4lsu3ez2a-smif6p

Use GeoPosition objects to define locations:

https://wolfram.com/xid/0n4lsu3ez2a-2fco3u

Compute distance to travel through several locations:

https://wolfram.com/xid/0n4lsu3ez2a-m1hs1e

Specify locations as addresses:

https://wolfram.com/xid/0n4lsu3ez2a-xn5ckf

Options (2)Common values & functionality for each option
TravelMethod (1)
TravelDistance uses "Driving" as default method of transportation:

https://wolfram.com/xid/0n4lsu3ez2a-1rpfjj


https://wolfram.com/xid/0n4lsu3ez2a-ecmcm5

UnitSystem (1)
The default unit system is given by $UnitSystem, usually determined by your location, in this case "Imperial":

https://wolfram.com/xid/0n4lsu3ez2a-fg27es

Specify the unit system of the result:

https://wolfram.com/xid/0n4lsu3ez2a-g8bvm4

Properties & Relations (2)Properties of the function, and connections to other functions
Compute the estimated travel distance between two locations:

https://wolfram.com/xid/0n4lsu3ez2a-8qbbp8

It can also be computed with TravelDirections:

https://wolfram.com/xid/0n4lsu3ez2a-nhdlik

Or as a property of a TravelDirectionsData object:

https://wolfram.com/xid/0n4lsu3ez2a-fkrggk


https://wolfram.com/xid/0n4lsu3ez2a-dxvnpx

Compute the distances between consecutive pairs of locations:

https://wolfram.com/xid/0n4lsu3ez2a-h0byw4

https://wolfram.com/xid/0n4lsu3ez2a-m7qiwc

They can also be obtained by combining Partition and TravelDistance, though less efficiently:

https://wolfram.com/xid/0n4lsu3ez2a-3h56yc

Wolfram Research (2015), TravelDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/TravelDistance.html.
Text
Wolfram Research (2015), TravelDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/TravelDistance.html.
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.
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
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: 01-April-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: 01-April-2025
]}