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

View Source

A leg is a single portion of a journey from one location to another.

Attributes

  • distanceMeters (type: integer(), default: nil) - The distance of this leg of the trip.
  • duration (type: String.t, default: nil) - The time it takes to complete this leg of the trip.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RoutingSummaryLeg{
  distanceMeters: integer() | nil,
  duration: String.t() | nil
}

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.