DistanceLeg
data class DistanceLeg( val distance: DistanceValue, val duration: DurationValue, val startLocation: LatLng, val endLocation: LatLng, val startWaypoint: Int, val endWaypoint: Int, val startAddress: String? = null, val endAddress: String? = null, val steps: List<DistanceStep>? = null)
Leg in a route
Parameters
distance
duration
startLocation
endLocation
startWaypoint
The start waypoint order number
endWaypoint
The end waypoint order number
startAddress
the starting address of the leg
endAddress
the ending address of the leg
steps
List of steps constituting the leg. Steps are returned when details=full
parameter is specified. A step is the most atomic unit of a route, containing a single step describing a specific, single instruction on the journey. The step not only describes the instruction but also contains distance and duration information relating to how this step relates to the following step.
Constructors
Link copied to clipboard
constructor( distance: DistanceValue, duration: DurationValue, startLocation: LatLng, endLocation: LatLng, startWaypoint: Int, endWaypoint: Int, startAddress: String? = null, endAddress: String? = null, steps: List<DistanceStep>? = null)