represents travel directions generated by TravelDirections.
TravelDirectionsData
represents travel directions generated by TravelDirections.
Details and Options
- Properties of travel directions can be obtained as TravelDirectionsData[…]["prop"].
- Possible properties include:
-
"Dataset" Dataset with maneuvers and other data "TravelPath" travel path as a GeoPath primitive "ManeuverGrid" grid of maneuvers "TravelDistance" total distance to travel "TravelTime" total time for travel
Examples
open all close allBasic Examples (1)
Travel from Miami to New York:
td = TravelDirections[{Entity["City", {"Miami", "Florida", "UnitedStates"}], Entity["City", {"NewYork", "NewYork", "UnitedStates"}]}]GeoGraphics[td["TravelPath"]]Print a table of instructions:
td["Dataset"]Scope (1)
Compute travel directions between two locations in Paris:
td = TravelDirections[{Entity["Building", "EiffelTower::5h9w8"], Entity["Building", "TheLouvre::vqy3g"]}]Obtain properties of the trip from the TravelDirectionsData object:
td["TravelDistance"]td["TravelTime"]td["ManeuverGrid"]GeoGraphics[{Red, Thick, td["TravelPath"]}]td["Dataset"]Options (1)
UnitSystem (1)
Extract property values in the specified unit system:
td = TravelDirections[{Entity["City", {"Sydney", "NewSouthWales", "Australia"}], Entity["City", {"Perth", "WesternAustralia", "Australia"}]}]td["TravelDistance", UnitSystem -> "Metric"]td["TravelDistance", UnitSystem -> "Imperial"]Properties & Relations (3)
TravelDirectionsData objects are produced by TravelDirections:
TravelDirections[{Entity["City", {"Tokyo", "Tokyo", "Japan"}], Entity["City", {"Osaka", "Osaka", "Japan"}]}]Some properties of TravelDirectionsData objects can be obtained from specific functions:
locs = {Entity["City", {"Tokyo", "Tokyo", "Japan"}], Entity["City", {"Osaka", "Osaka", "Japan"}]};td = TravelDirections[locs]{td["TravelTime"], TravelTime[locs]}{td["TravelDistance"], TravelDistance[locs]}Compute travel directions between Perth and Townsville in Australia:
td = TravelDirections[{Entity["City", {"Perth", "WesternAustralia", "Australia"}], Entity["City", {"Townsville", "Queensland", "Australia"}]}]These are the latitude and longitude bounds of the corresponding travel path:
GeoBounds[td]GeoGraphics[TravelDirectionsData[…]] shows the area:
GeoGraphics[td]Use TravelDirectionsData[…]["TravelPath"] to represent the actual path:
GeoGraphics[Arrow[td["TravelPath"]]]See Also
Related Guides
History
Text
Wolfram Research (2015), TravelDirectionsData, Wolfram Language function, https://reference.wolfram.com/language/ref/TravelDirectionsData.html.
CMS
Wolfram Language. 2015. "TravelDirectionsData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TravelDirectionsData.html.
APA
Wolfram Language. (2015). TravelDirectionsData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TravelDirectionsData.html
BibTeX
@misc{reference.wolfram_2026_traveldirectionsdata, author="Wolfram Research", title="{TravelDirectionsData}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/TravelDirectionsData.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_traveldirectionsdata, organization={Wolfram Research}, title={TravelDirectionsData}, year={2015}, url={https://reference.wolfram.com/language/ref/TravelDirectionsData.html}, note=[Accessed: 13-June-2026]}