# Class RouteModifiers (1.15.0)

1.15.0 (latest) 1.14.0 1.13.0 1.12.0 1.11.2 1.10.0 1.9.1 1.8.5 1.7.0 1.6.0 1.5.0 1.4.3 1.3.2 1.2.0 1.1.3 1.0.1 0.1.1

    RouteModifiers(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Encapsulates a set of optional conditions to satisfy when
calculating vehicle routes. This is similar to `RouteModifiers` in
the Google Maps Platform API; see:
<https://developers.google.com/maps/documentation/routes/reference/rest/v2/RouteModifiers>.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `avoid_tolls` | `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. |