gives the estimated distance for travel from loc1 to loc2, .

Details and Options


open allclose all

Basic Examples  (1)

Compute an estimation of the total distance of a trip:

Scope  (4)

Distance to travel between two geographic locations:

Use GeoPosition objects to define locations:

Compute distance to travel through several locations:

Specify locations as addresses:

Options  (2)

TravelMethod  (1)

TravelDistance uses "Driving" as default method of transportation:

Use "Walking" instead:

UnitSystem  (1)

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

Specify the unit system of the result:

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:

Wolfram Research (2015), TravelDistance, Wolfram Language function,


Wolfram Research (2015), TravelDistance, Wolfram Language function,


Wolfram Language. 2015. "TravelDistance." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (2015). TravelDistance. Wolfram Language & System Documentation Center. Retrieved from


@misc{reference.wolfram_2024_traveldistance, author="Wolfram Research", title="{TravelDistance}", year="2015", howpublished="\url{}", note=[Accessed: 23-June-2024 ]}


@online{reference.wolfram_2024_traveldistance, organization={Wolfram Research}, title={TravelDistance}, year={2015}, url={}, note=[Accessed: 23-June-2024 ]}