Vehicle
data class Vehicle( val travelMode: TravelMode = TravelMode.CAR, val maxSpeed: Speed? = null, val isCommercial: Boolean? = null, val loadType: Set<VehicleLoadType> = emptySet(), val adrTunnelRestrictionCode: VehicleAdrTunnelRestrictionCode? = null, val dimensions: VehicleDimensions? = null, val electricEngine: ElectricEngine? = null, val combustionEngine: CombustionEngine? = null)
Content copied to clipboard
Specifies the restriction that this vehicle should be subjected to.
Important: This is a Public Preview API. It may be changed or removed at any time.
Parameters
travelMode
The mode of travel for the requested route. Defaults to TravelMode.CAR.
maxSpeed
Specifies maximum speed of the vehicle in km/hour.
isCommercial
Specifies whether the vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.
loadType
Specifies the vehicle load type for route calculation.
adrTunnelRestrictionCode
If specified, the vehicle is subject to ADR tunnel restrictions.
dimensions
Specifies the vehicle's dimensions for route calculation.
electricEngine
Specifies the vehicle's electric engine for route and consumption calculation.
combustionEngine
Specifies the vehicle's combustion engine for route and consumption calculation.
Constructors
Link copied to clipboard
fun Vehicle( travelMode: TravelMode = TravelMode.CAR, maxSpeed: Speed? = null, isCommercial: Boolean? = null, loadType: Set<VehicleLoadType> = emptySet(), adrTunnelRestrictionCode: VehicleAdrTunnelRestrictionCode? = null, dimensions: VehicleDimensions? = null, electricEngine: ElectricEngine? = null, combustionEngine: CombustionEngine? = null)
Content copied to clipboard