Google Maps Route Optimization V1 Client - Class TravelMode (0.9.0)

Reference documentation and code samples for the Google Maps Route Optimization V1 Client class TravelMode.

Travel modes which can be used by vehicles.

These should be a subset of the Google Maps Platform Routes API travel modes, see: https://developers.google.com/maps/documentation/routes/reference/rest/v2/RouteTravelMode Note: WALKING routes are in beta and might sometimes be missing clear sidewalks or pedestrian paths. You must display this warning to the user for all walking routes that you display in your app.

Protobuf type google.maps.routeoptimization.v1.Vehicle.TravelMode

Namespace

Google \ Maps \ RouteOptimization \ V1 \ Vehicle

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

TRAVEL_MODE_UNSPECIFIED

Value: 0

Unspecified travel mode, equivalent to DRIVING.

Generated from protobuf enum TRAVEL_MODE_UNSPECIFIED = 0;

DRIVING

Value: 1

Travel mode corresponding to driving directions (car, ...).

Generated from protobuf enum DRIVING = 1;

WALKING

Value: 2

Travel mode corresponding to walking directions.

Generated from protobuf enum WALKING = 2;

TWO_WHEELER

Value: 5

Two-wheeled, motorized vehicle. For example, motorcycle. Note that this differs from the BICYCLING travel mode which covers human-powered mode.

This travel mode is supported only in the countries listed at Countries and regions supported for two-wheeled vehicles.

Generated from protobuf enum TWO_WHEELER = 5;