View Source GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RoutingSummary (google_api_places v0.8.1)
The duration and distance from the routing origin to a place in the response, and a second leg from that place to the destination, if requested. Note: Adding routingSummaries
in the field mask without also including either the routingParameters.origin
parameter or the searchAlongRouteParameters.polyline.encodedPolyline
parameter in the request causes an error.
Attributes
-
legs
(type:list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RoutingSummaryLeg.t)
, default:nil
) - The legs of the trip. When you calculate travel duration and distance from a set origin,legs
contains a single leg containing the duration and distance from the origin to the destination. When you do a search along route,legs
contains two legs: one from the origin to place, and one from the place to the destination.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RoutingSummary{ legs: [GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RoutingSummaryLeg.t()] | nil }
Functions
Unwrap a decoded JSON object into its complex fields.