Options
All
  • Public
  • Public/Protected
  • All
Menu

When you calculate directions, you may specify the transportation mode to use. By default, directions are calculated as driving directions.

Note: Both walking and bicycling directions may sometimes not include clear pedestrian or bicycling paths, so these directions will return warnings in the returned result which you must display to the user.

Index

Enumeration members

Enumeration members

bicycling

bicycling: = "bicycling"

requests bicycling directions via bicycle paths & preferred streets (where available).

driving

driving: = "driving"

(default) indicates standard driving directions using the road network.

transit

transit: = "transit"

requests directions via public transit routes (where available). If you set the mode to transit, you can optionally specify either a departure_time or an arrival_time. If neither time is specified, the departure_time defaults to now (that is, the departure time defaults to the current time). You can also optionally include a transit_mode and/or a transit_routing_preference.

walking

walking: = "walking"

requests walking directions via pedestrian paths & sidewalks (where available).

Generated using TypeDoc