# TravelDistance

TravelDistance[{loc1,loc2,}]

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

# 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
• TravelDistance[loc1,loc2] is equivalent to TravelDistance[{loc1,loc2}].
• TravelDistance[loc2,loc1] is not necessarily the same as TravelDistance[loc1,loc2] as a result of one-way streets and similar issues.

# 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:

## Options(2)

### TravelMethod(1)

TravelDistance uses "Driving" as default method of transportation:

### 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: 04-August-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: 04-August-2024 ]}