Walk Leg
data class WalkLeg(distance: Distance, travelDuration: Duration?, instructionSegments: List<InstructionSegment>?, pathAnnotations: List<PathAnnotation>?, path: PathGeometry, stationWalkType: StationWalkType, walkDetailsEnterStation: StationWalkDetails?, walkDetailsExitStation: StationWalkDetails?) : Leg, HasInstructions, HasPathAnnotations
Content copied to clipboard
A walking leg
Constructors
Link copied to clipboard
fun WalkLeg(distance: Distance, travelDuration: Duration?, instructionSegments: List<InstructionSegment>? = null, pathAnnotations: List<PathAnnotation>? = null, path: PathGeometry, stationWalkType: StationWalkType = StationWalkType.OutsideStation, walkDetailsEnterStation: StationWalkDetails? = null, walkDetailsExitStation: StationWalkDetails? = null)
Content copied to clipboard
Properties
Link copied to clipboard
Extra metadata about sections of the path. For instance, in Legs with travel_mode
of self_piloted
, these annotations can indicate sections of the path where the user should dismount their vehicle and walk