[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Maps Route Optimization V1 Client - Class TravelMode (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-routeoptimization/latest/V1.Vehicle.TravelMode)\n- [0.4.0](/php/docs/reference/maps-routeoptimization/0.4.0/V1.Vehicle.TravelMode)\n- [0.3.3](/php/docs/reference/maps-routeoptimization/0.3.3/V1.Vehicle.TravelMode)\n- [0.2.0](/php/docs/reference/maps-routeoptimization/0.2.0/V1.Vehicle.TravelMode)\n- [0.1.0](/php/docs/reference/maps-routeoptimization/0.1.0/V1.Vehicle.TravelMode) \nReference documentation and code samples for the Google Maps Route Optimization V1 Client class TravelMode.\n\nTravel modes which can be used by vehicles.\n\nThese should be a subset of the Google Maps Platform Routes Preferred API\ntravel modes, see:\n\u003chttps://developers.google.com/maps/documentation/routes_preferred/reference/rest/Shared.Types/RouteTravelMode\u003e.\n\nProtobuf type `google.maps.routeoptimization.v1.Vehicle.TravelMode`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ RouteOptimization \\\\ V1 \\\\ Vehicle\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### TRAVEL_MODE_UNSPECIFIED\n\n Value: 0\n\nUnspecified travel mode, equivalent to `DRIVING`.\n\nGenerated from protobuf enum `TRAVEL_MODE_UNSPECIFIED = 0;`\n\n### DRIVING\n\n Value: 1\n\nTravel mode corresponding to driving directions (car, ...).\n\nGenerated from protobuf enum `DRIVING = 1;`\n\n### WALKING\n\n Value: 2\n\nTravel mode corresponding to walking directions.\n\nGenerated from protobuf enum `WALKING = 2;`"]]