# Cloud Optimization V1 API - Class Google::Cloud::Optimization::V1::RouteModifiers (v0.16.0)

0.16.0 (latest) 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.2 0.8.2 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.1 0.1.1 Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::RouteModifiers.

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>.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #avoid_ferries

    def avoid_ferries() -> ::Boolean

**Returns**

- (::Boolean) --- 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_ferries=

    def avoid_ferries=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Specifies whether to avoid ferries where reasonable. Preference will be given to routes not containing travel by ferries. Applies only to motorized travel modes.
**Returns**

- (::Boolean) --- 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_highways

    def avoid_highways() -> ::Boolean

**Returns**

- (::Boolean) --- Specifies whether to avoid highways where reasonable. Preference will be given to routes not containing highways. Applies only to motorized travel modes.

### #avoid_highways=

    def avoid_highways=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Specifies whether to avoid highways where reasonable. Preference will be given to routes not containing highways. Applies only to motorized travel modes.
**Returns**

- (::Boolean) --- Specifies whether to avoid highways where reasonable. Preference will be given to routes not containing highways. Applies only to motorized travel modes.

### #avoid_indoor

    def avoid_indoor() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

### #avoid_indoor=

    def avoid_indoor=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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.
**Returns**

- (::Boolean) --- 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.

### #avoid_tolls

    def avoid_tolls() -> ::Boolean

**Returns**

- (::Boolean) --- 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_tolls=

    def avoid_tolls=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Specifies whether to avoid toll roads where reasonable. Preference will be given to routes not containing toll roads. Applies only to motorized travel modes.
**Returns**

- (::Boolean) --- Specifies whether to avoid toll roads where reasonable. Preference will be given to routes not containing toll roads. Applies only to motorized travel modes.