generates directions for travel from loc1 to loc2, .


gives the property prop of travel directions.

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$UnitSystemunit 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.


open allclose all

Basic Examples  (2)

Find directions from New York City to Miami:

Show the path as a thick red line:

Get instructions as a dataset:

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

Get an estimate of the total travel time:

Scope  (5)

Compute travel instructions between two geographic location entities:

Extract a property value:

Compute a property value:

Use GeoPosition objects to define locations:

Compute instructions to travel through a list of locations:

Specify locations as addresses:

Options  (3)

TravelMethod  (1)

TravelDirections uses "Driving" as the default method of transportation:

Use "Walking" instead:

The respective travel paths are different:

UnitSystem  (2)

Specify the unit system of the output quantities:

Extract property values in different unit systems:

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

Applications  (1)

Take major stops of the Camino de Santiago through northern Spain:

Compute travel directions assuming "Walking" as travel method:

Draw a map, including markers at the intermediate locations:

Estimate the total distance traveled:

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

Properties & Relations  (2)

The estimated travel time can also be computed with TravelTime:

The estimated travel distance can also be computed with TravelDistance:

Possible Issues  (1)

Traffic restrictions may force different routes when traveling to the locations in reverse order:

Travel distances are different:

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


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


@misc{reference.wolfram_2020_traveldirections, author="Wolfram Research", title="{TravelDirections}", year="2015", howpublished="\url{}", note=[Accessed: 16-April-2021 ]}


@online{reference.wolfram_2020_traveldirections, organization={Wolfram Research}, title={TravelDirections}, year={2015}, url={}, note=[Accessed: 16-April-2021 ]}


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


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