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 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)
Scope (5)
Compute travel instructions between two geographic location entities:
Use GeoPosition objects to define locations:
Options (3)
TravelMethod (1)
TravelDirections uses "Driving" as the default method of transportation:
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)
Properties & Relations (2)
The estimated travel time can also be computed with TravelTime:
The estimated travel distance can also be computed with TravelDistance:
Text
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.
APA
Wolfram Language. (2015). TravelDirections. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TravelDirections.html