DistanceStep

data class DistanceStep(val distance: String, val duration: String, val polyline: String, val startLocation: LatLng, val endLocation: LatLng, val travelMode: String, val instructions: DistanceInstructions? = null)

step in a leg

Parameters

distance

the distance as text covered by this step until the next step.

duration

the typical time as text required to perform the step, until the next step

polyline

the polyline representation of the step (encoded with the poyline algorithm

startLocation
endLocation
travelMode

the type of travel mode used

instructions

Constructors

Link copied to clipboard
constructor(distance: String, duration: String, polyline: String, startLocation: LatLng, endLocation: LatLng, travelMode: String, instructions: DistanceInstructions? = null)

Properties

Link copied to clipboard
@SerializedName(value = "distance")
val distance: String
Link copied to clipboard
@SerializedName(value = "duration")
val duration: String
Link copied to clipboard
@SerializedName(value = "end_location")
val endLocation: LatLng
Link copied to clipboard
@SerializedName(value = "instructions")
val instructions: DistanceInstructions? = null
Link copied to clipboard
@SerializedName(value = "polyline")
val polyline: String
Link copied to clipboard
@SerializedName(value = "start_location")
val startLocation: LatLng
Link copied to clipboard
@SerializedName(value = "travel_mode")
val travelMode: String