DistanceRouteElementsResponse

data class DistanceRouteElementsResponse(val overviewPolyline: EncodedPolyline, val bounds: LatLngBounds, val notice: String, val legs: List<DistanceLeg>)

Attributes describing routes from an origin to a destination returned in distance route response.

Parameters

overviewPolyline

Encoded polyline string

bounds

Bounds of the returned route

notice

Some noticeable information about the route

legs

Legs of the returned route DistanceLeg

Constructors

Link copied to clipboard
constructor(overviewPolyline: EncodedPolyline, bounds: LatLngBounds, notice: String, legs: List<DistanceLeg>)

Properties

Link copied to clipboard
@SerializedName(value = "bounds")
val bounds: LatLngBounds
Link copied to clipboard
@SerializedName(value = "legs")
val legs: List<DistanceLeg>
Link copied to clipboard
@SerializedName(value = "notice")
val notice: String
Link copied to clipboard
@SerializedName(value = "overview_polyline")
val overviewPolyline: EncodedPolyline