Hired Vehicle Leg
data class HiredVehicleLeg(distance: Distance, travelDuration: Duration?, vehicleType: VehicleType, service: Service, instructionSegments: List<InstructionSegment>?, pathAnnotations: List<PathAnnotation>?, path: PathGeometry, vehiclePickupOptions: List<VehiclePickupOption>, vehicleDropoffOptions: List<VehicleDropoffOption>) : SelfPilotedLeg, HasService
Content copied to clipboard
A leg where the user drives or rides a vehicle which they hire at the start of the leg, represented by the service.
Constructors
Link copied to clipboard
fun HiredVehicleLeg(distance: Distance, travelDuration: Duration?, vehicleType: VehicleType, service: Service, instructionSegments: List<InstructionSegment>? = null, pathAnnotations: List<PathAnnotation>? = null, path: PathGeometry, vehiclePickupOptions: List<VehiclePickupOption> = emptyList(), vehicleDropoffOptions: List<VehicleDropoffOption> = emptyList())
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