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

View Source

Parameters to configure the routing calculations to the places in the response, both along a route (where result ranking will be influenced) and for calculating travel times on results.

Attributes

  • origin (type: GoogleApi.Places.V1.Model.GoogleTypeLatLng.t, default: nil) - Optional. An explicit routing origin that overrides the origin defined in the polyline. By default, the polyline origin is used.
  • routeModifiers (type: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RouteModifiers.t, default: nil) - Optional. The route modifiers.
  • routingPreference (type: String.t, default: nil) - Optional. Specifies how to compute the routing summaries. The server attempts to use the selected routing preference to compute the route. The traffic aware routing preference is only available for the DRIVE or TWO_WHEELER travelMode.
  • travelMode (type: String.t, default: nil) - Optional. The travel mode.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RoutingParameters{
  origin: GoogleApi.Places.V1.Model.GoogleTypeLatLng.t() | nil,
  routeModifiers:
    GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RouteModifiers.t() | nil,
  routingPreference: String.t() | nil,
  travelMode: String.t() | nil
}

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.