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)

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)

Properties

Link copied to clipboard
val combustionEngine: CombustionEngine? = null
Link copied to clipboard
val electricEngine: ElectricEngine? = null
Link copied to clipboard
val isVehicleCommercial: Boolean? = null
Link copied to clipboard
Link copied to clipboard
val vehicleDimensions: VehicleDimensions? = null
Link copied to clipboard
val vehicleLoadType: Set<VehicleLoadType>
Link copied to clipboard
val vehicleMaxSpeedInKph: Int? = null