Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

TravelDirections

TravelDirections[{loc1,loc2,}]
generates directions for travel from loc1 to loc2, .

TravelDirections[{loc1,loc2,},"prop"]
gives the property prop of travel directions.

Details and OptionsDetails 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.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Find directions from New York City to Miami:

In[1]:=
Click for copyable input
Out[1]=

Show the path as a thick red line:

In[2]:=
Click for copyable input
Out[2]=

Get instructions as a dataset:

In[3]:=
Click for copyable input
Out[3]=

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

In[1]:=
Click for copyable input
Out[1]=

Get an estimate of the total travel time:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2015
(10.3)