TravelTime[{loc1,loc2,…}]
gives the estimated time to travel from loc1 to loc2, ….
TravelTime
TravelTime[{loc1,loc2,…}]
gives the estimated time to 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 - TravelTime does not take traffic into account.
- For the default setting TravelMethod->"Driving", TravelTime assumes travel at the speed limits for roads.
- TravelTime[loc1,loc2] is equivalent to TravelTime[{loc1,loc2}].
- TravelTime[loc2,loc1] is not necessarily the same as TravelTime[loc1,loc2] as a result of one-way streets and similar issues.
Examples
open all close allBasic Examples (1)
Scope (4)
Time to travel between two geographic locations:
TravelTime[{Entity["City", {"London", "GreaterLondon", "UnitedKingdom"}], Entity["City", {"Berlin", "Berlin", "Germany"}]}]Use GeoPosition objects to define locations:
TravelTime[{GeoPosition[{40.11, -88.24}], GeoPosition[{41.84, -87.69}]}]Compute time to travel through several locations:
TravelTime[{Entity["City", {"Lima", "Lima", "Peru"}], GeoPosition[{-14.06, -75.75}], Entity["City", {"Arequipa", "Arequipa", "Peru"}], Entity["City", {"Cusco", "Cusco", "Peru"}]}]Specify locations as addresses:
TravelTime[{"100 Trade Center Drive, Champaign, Illinois, US", Entity["City", {"Chicago", "Illinois", "UnitedStates"}]}]Options (2)
TravelMethod (1)
TravelTime uses "Driving" as the default method of transportation:
TravelTime[{Entity["Building", "EmpireStateBuilding::h583b"], Entity["Museum", "MuseumOfModernArt::nfkn8"]}, TravelMethod -> "Driving"]TravelTime[{Entity["Building", "EmpireStateBuilding::h583b"], Entity["Museum", "MuseumOfModernArt::nfkn8"]}, TravelMethod -> "Walking"]UnitSystem (1)
Specify the unit system of the result:
TravelTime[{Entity["City", {"BuenosAires", "BuenosAires", "Argentina"}], Entity["City", {"Lima", "Lima", "Peru"}]}]TravelTime[{Entity["City", {"BuenosAires", "BuenosAires", "Argentina"}], Entity["City", {"Lima", "Lima", "Peru"}]}, UnitSystem -> "Metric"]Properties & Relations (1)
Compute the estimated travel time between two locations:
TravelTime[{Entity["City", {"Miami", "Florida", "UnitedStates"}], Entity["City", {"NewYork", "NewYork", "UnitedStates"}]}]It can also be computed with TravelDirections:
TravelDirections[{Entity["City", {"Miami", "Florida", "UnitedStates"}], Entity["City", {"NewYork", "NewYork", "UnitedStates"}]}, "TravelTime"]Or as a property of a TravelDirectionsData object:
TravelDirections[{Entity["City", {"Miami", "Florida", "UnitedStates"}], Entity["City", {"NewYork", "NewYork", "UnitedStates"}]}]%["TravelTime"]Related Guides
History
Text
Wolfram Research (2015), TravelTime, Wolfram Language function, https://reference.wolfram.com/language/ref/TravelTime.html.
CMS
Wolfram Language. 2015. "TravelTime." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TravelTime.html.
APA
Wolfram Language. (2015). TravelTime. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TravelTime.html
BibTeX
@misc{reference.wolfram_2026_traveltime, author="Wolfram Research", title="{TravelTime}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/TravelTime.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_traveltime, organization={Wolfram Research}, title={TravelTime}, year={2015}, url={https://reference.wolfram.com/language/ref/TravelTime.html}, note=[Accessed: 13-June-2026]}