GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RouteModifiers (google_api_places v0.11.0)

View Source

Encapsulates a set of optional conditions to satisfy when calculating the routes.

Attributes

  • avoidFerries (type: boolean(), default: nil) - Optional. When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the DRIVE and TWO_WHEELER TravelMode.
  • avoidHighways (type: boolean(), default: nil) - Optional. When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the DRIVE and TWO_WHEELER TravelMode.
  • avoidIndoor (type: boolean(), default: nil) - Optional. When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the WALK TravelMode.
  • avoidTolls (type: boolean(), default: nil) - Optional. When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads. Applies only to the DRIVE and TWO_WHEELER TravelMode.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RouteModifiers{
  avoidFerries: boolean() | nil,
  avoidHighways: boolean() | nil,
  avoidIndoor: boolean() | nil,
  avoidTolls: boolean() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.