TravelDirections
✖
TravelDirections
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 - TravelDirections returns a TravelDirectionsData object, which behaves as a path specification inside GeoGraphics.
- Possible properties prop to request 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 - TravelDirections attempts to find the fastest path between the loci, not taking traffic into account.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Find directions from New York City to Miami:

https://wolfram.com/xid/0n4lsu3e26b-3c7ryq

Show the path as a thick red line:

https://wolfram.com/xid/0n4lsu3e26b-4soszf

Get instructions as a dataset:

https://wolfram.com/xid/0n4lsu3e26b-mp4xo8

Specify a method of transportation, in this case driving by car:

https://wolfram.com/xid/0n4lsu3e26b-yq90ao

Get an estimate of the total travel time:

https://wolfram.com/xid/0n4lsu3e26b-gs2rdx

Scope (5)Survey of the scope of standard use cases
Compute travel instructions between two geographic location entities:

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


https://wolfram.com/xid/0n4lsu3e26b-pjug9y


https://wolfram.com/xid/0n4lsu3e26b-wiqsas

Use GeoPosition objects to define locations:

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

Compute instructions to travel through a list of locations:

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

Specify locations as addresses:

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

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

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


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

The respective travel paths are different:

https://wolfram.com/xid/0n4lsu3e26b-e898sp

UnitSystem (2)
Specify the unit system of the output quantities:

https://wolfram.com/xid/0n4lsu3e26b-2xl3hs


https://wolfram.com/xid/0n4lsu3e26b-osc949

Extract property values in different unit systems:

https://wolfram.com/xid/0n4lsu3e26b-uzybrz

The default unit system is given by $UnitSystem, usually determined by your location:

https://wolfram.com/xid/0n4lsu3e26b-suw82o


https://wolfram.com/xid/0n4lsu3e26b-gakz3v

Applications (1)Sample problems that can be solved with this function
Take major stops of the Camino de Santiago through northern Spain:

https://wolfram.com/xid/0n4lsu3e26b-tuwir
Compute travel directions assuming "Walking" as travel method:

https://wolfram.com/xid/0n4lsu3e26b-fu9klr

Draw a map, including markers at the intermediate locations:

https://wolfram.com/xid/0n4lsu3e26b-cc18oo

Estimate the total distance traveled:

https://wolfram.com/xid/0n4lsu3e26b-izhw82

Estimate the total time spent, not counting any intermediate stops:

https://wolfram.com/xid/0n4lsu3e26b-2anhgm

Properties & Relations (2)Properties of the function, and connections to other functions
The estimated travel time can also be computed with TravelTime:

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


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

The estimated travel distance can also be computed with TravelDistance:

https://wolfram.com/xid/0n4lsu3e26b-g2mpca


https://wolfram.com/xid/0n4lsu3e26b-pxzr8q

Possible Issues (1)Common pitfalls and unexpected behavior
Traffic restrictions may force different routes when traveling to the locations in reverse order:

https://wolfram.com/xid/0n4lsu3e26b-i1fqgu

https://wolfram.com/xid/0n4lsu3e26b-9ny1j9


https://wolfram.com/xid/0n4lsu3e26b-9niyj6


https://wolfram.com/xid/0n4lsu3e26b-0wpexv

Travel distances are different:

https://wolfram.com/xid/0n4lsu3e26b-8uv2ol

Wolfram Research (2015), TravelDirections, Wolfram Language function, https://reference.wolfram.com/language/ref/TravelDirections.html.
Text
Wolfram Research (2015), TravelDirections, Wolfram Language function, https://reference.wolfram.com/language/ref/TravelDirections.html.
Wolfram Research (2015), TravelDirections, Wolfram Language function, https://reference.wolfram.com/language/ref/TravelDirections.html.
CMS
Wolfram Language. 2015. "TravelDirections." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TravelDirections.html.
Wolfram Language. 2015. "TravelDirections." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TravelDirections.html.
APA
Wolfram Language. (2015). TravelDirections. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TravelDirections.html
Wolfram Language. (2015). TravelDirections. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TravelDirections.html
BibTeX
@misc{reference.wolfram_2025_traveldirections, author="Wolfram Research", title="{TravelDirections}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/TravelDirections.html}", note=[Accessed: 16-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_traveldirections, organization={Wolfram Research}, title={TravelDirections}, year={2015}, url={https://reference.wolfram.com/language/ref/TravelDirections.html}, note=[Accessed: 16-April-2025
]}