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:

Introduced in 2015
 (10.3)