bool
Specifies whether to avoid toll roads where
reasonable. Preference will be given to routes
not containing toll roads. Applies only to
motorized travel modes.
avoid_highways
bool
Specifies whether to avoid highways where
reasonable. Preference will be given to routes
not containing highways. Applies only to
motorized travel modes.
avoid_ferries
bool
Specifies whether to avoid ferries where
reasonable. Preference will be given to routes
not containing travel by ferries. Applies only
to motorized travel modes.
avoid_indoor
bool
Optional. Specifies whether to avoid navigating indoors
where reasonable. Preference will be given to routes not
containing indoor navigation. Applies only to the
WALKING travel mode.
[[["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-08-07 UTC."],[],[],null,["# Class RouteModifiers (1.11.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.11.2 (latest)](/python/docs/reference/optimization/latest/google.cloud.optimization_v1.types.RouteModifiers)\n- [1.11.0](/python/docs/reference/optimization/1.11.0/google.cloud.optimization_v1.types.RouteModifiers)\n- [1.10.0](/python/docs/reference/optimization/1.10.0/google.cloud.optimization_v1.types.RouteModifiers)\n- [1.9.1](/python/docs/reference/optimization/1.9.1/google.cloud.optimization_v1.types.RouteModifiers)\n- [1.8.5](/python/docs/reference/optimization/1.8.5/google.cloud.optimization_v1.types.RouteModifiers)\n- [1.7.0](/python/docs/reference/optimization/1.7.0/google.cloud.optimization_v1.types.RouteModifiers)\n- [1.6.0](/python/docs/reference/optimization/1.6.0/google.cloud.optimization_v1.types.RouteModifiers)\n- [1.5.0](/python/docs/reference/optimization/1.5.0/google.cloud.optimization_v1.types.RouteModifiers)\n- [1.4.3](/python/docs/reference/optimization/1.4.3/google.cloud.optimization_v1.types.RouteModifiers)\n- [1.3.2](/python/docs/reference/optimization/1.3.2/google.cloud.optimization_v1.types.RouteModifiers)\n- [1.2.0](/python/docs/reference/optimization/1.2.0/google.cloud.optimization_v1.types.RouteModifiers)\n- [1.1.3](/python/docs/reference/optimization/1.1.3/google.cloud.optimization_v1.types.RouteModifiers)\n- [1.0.1](/python/docs/reference/optimization/1.0.1/google.cloud.optimization_v1.types.RouteModifiers)\n- [0.1.1](/python/docs/reference/optimization/0.1.1/google.cloud.optimization_v1.types.RouteModifiers) \n\n RouteModifiers(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nEncapsulates a set of optional conditions to satisfy when\ncalculating vehicle routes. This is similar to `RouteModifiers` in\nthe Google Maps Platform API; see:\n\u003chttps://developers.google.com/maps/documentation/routes/reference/rest/v2/RouteModifiers\u003e."]]