travelMode property

String? travelMode
getter/setter pair

The travel mode.

Optional. Possible string values are:

  • "TRAVEL_MODE_UNSPECIFIED" : No travel mode specified. Defaults to DRIVE.
  • "DRIVE" : Travel by passenger car.
  • "BICYCLE" : Travel by bicycle. Not supported with search_along_route_parameters.
  • "WALK" : Travel by walking. Not supported with search_along_route_parameters.
  • "TWO_WHEELER" : Motorized two wheeled vehicles of all kinds such as scooters and motorcycles. Note that this is distinct from the BICYCLE travel mode which covers human-powered transport. Not supported with search_along_route_parameters. Only supported in those countries listed at [Countries and regions supported for two-wheeled vehicles](https://developers.google.com/maps/documentation/routes/coverage-two-wheeled).

Implementation

core.String? travelMode;