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

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.