# Google Cloud Optimization V1 Client - Class TravelMode (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.7.0 0.6.5 0.5.1 0.4.0 0.3.4 0.2.0 0.1.9 Reference documentation and code samples for the Google Cloud Optimization V1 Client class TravelMode.

Travel modes which can be used by vehicles.

These should be a subset of the Google Maps Platform Routes Preferred API
travel modes, see:
<https://developers.google.com/maps/documentation/routes_preferred/reference/rest/Shared.Types/RouteTravelMode>.

Protobuf type `google.cloud.optimization.v1.Vehicle.TravelMode`

## Namespace

Google \\ Cloud \\ Optimization \\ 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;`