Vehicle
data class Vehicle( val vehicleMaxSpeedInKph: Int? = null, val isVehicleCommercial: Boolean? = null, val vehicleLoadType: Set<VehicleLoadType> = emptySet(), val vehicleAdrTunnelRestrictionCode: VehicleAdrTunnelRestrictionCode? = null, val vehicleDimensions: 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
vehicleMaxSpeedInKph
Specifies maximum speed of the vehicle in km/hour.
isVehicleCommercial
Specifies whether the vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.
vehicleLoadType
Specifies the vehicle load type for route calculation.
vehicleAdrTunnelRestrictionCode
If specified, the vehicle is subject to ADR tunnel restrictions.
vehicleDimensions
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( vehicleMaxSpeedInKph: Int? = null, isVehicleCommercial: Boolean? = null, vehicleLoadType: Set<VehicleLoadType> = emptySet(), vehicleAdrTunnelRestrictionCode: VehicleAdrTunnelRestrictionCode? = null, vehicleDimensions: VehicleDimensions? = null, electricEngine: ElectricEngine? = null, combustionEngine: CombustionEngine? = null)
Content copied to clipboard
Properties
Link copied to clipboard
val vehicleAdrTunnelRestrictionCode: VehicleAdrTunnelRestrictionCode? = null
Content copied to clipboard