Own Vehicle Leg
data class OwnVehicleLeg(distance: Distance, travelDuration: Duration?, vehicleType: VehicleType, instructionSegments: List<InstructionSegment>?, pathAnnotations: List<PathAnnotation>?, path: PathGeometry) : SelfPilotedLeg
Content copied to clipboard
A leg where the user drives or rides a vehicle of their own
Constructors
Link copied to clipboard
fun OwnVehicleLeg(distance: Distance, travelDuration: Duration?, vehicleType: VehicleType, instructionSegments: List<InstructionSegment>? = null, pathAnnotations: List<PathAnnotation>? = null, path: PathGeometry)
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