RouteTravelMode

  • Specifies the mode of travel for a journey, defaulting to driving if unspecified.

  • Includes common options like driving, bicycling, walking, and two-wheeler motorized travel.

  • Features a specialized mode for taxis, potentially utilizing designated lanes for optimized routes.

  • Offers 'TWO_WHEELER' as a distinct category for motorized two-wheelers, separate from bicycles.

  • Utilizes 'TRAVEL_MODE_UNSPECIFIED' to signify the absence of a specified mode, automatically reverting to 'DRIVE'.

A set of values used to specify the mode of travel.

Enums
TRAVEL_MODE_UNSPECIFIED No travel mode specified. Defaults to DRIVE.
DRIVE Travel by passenger car.
BICYCLE Travel by bicycle.
WALK Travel by walking.
TWO_WHEELER Two-wheeled, motorized vehicle. For example, motorcycle. Note that this differs from the BICYCLE travel mode which covers human-powered mode.
TAXI

Travel by licensed taxi, which may allow the vehicle to travel on designated taxi lanes in some areas.

TAXI mode is an experimental feature. If customer requests TAXI route in a city where taxi lane data is not available, a DRIVE route is returned.