TravelDistance

TravelDistance[{loc1,loc2,}]

gives the estimated distance for travel from loc1 to loc2, .

Details and Options

Examples

open allclose all

Basic Examples  (1)

Compute an estimation of the total distance of a trip:

Scope  (4)

Distance to travel between two geographic locations:

Use GeoPosition objects to define locations:

Compute distance to travel through several locations:

Specify locations as addresses:

Options  (2)

TravelMethod  (1)

TravelDistance uses "Driving" as default method of transportation:

Use "Walking" instead:

UnitSystem  (1)

The default unit system is given by $UnitSystem, usually determined by your location, in this case "Imperial":

Specify the unit system of the result:

Properties & Relations  (2)

Compute the estimated travel distance between two locations:

It can also be computed with TravelDirections:

Or as a property of a TravelDirectionsData object:

Compute the distances between consecutive pairs of locations:

They can also be obtained by combining Partition and TravelDistance, though less efficiently:

Wolfram Research (2015), TravelDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/TravelDistance.html.

Text

Wolfram Research (2015), TravelDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/TravelDistance.html.

CMS

Wolfram Language. 2015. "TravelDistance." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TravelDistance.html.

APA

Wolfram Language. (2015). TravelDistance. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TravelDistance.html

BibTeX

@misc{reference.wolfram_2024_traveldistance, author="Wolfram Research", title="{TravelDistance}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/TravelDistance.html}", note=[Accessed: 23-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_traveldistance, organization={Wolfram Research}, title={TravelDistance}, year={2015}, url={https://reference.wolfram.com/language/ref/TravelDistance.html}, note=[Accessed: 23-November-2024 ]}