is an option for TravelDirections and related functions that specifies the mode of transportation to assume.


  • Possible settings for TravelMethod include:
  • "Biking"biking on allowed paths at 18 km/hr
    "Driving"driving at speed limits
    "Walking"walking on walking paths at 5 km/hr
  • Driving does not take traffic into account.


open allclose all

Basic Examples  (3)

The time to travel between two locations depends strongly on the method of transportation:

The travel path may be different for different methods of transportation:

The method of transportation affects, among other things, which types of routes are considered for the path:

Scope  (3)

Introduced in 2015