Truck

data class Truck(    val maxSpeed: Speed = Speed.kilometersPerHour(0),     val isCommercial: Boolean = true,     val electricEngine: ElectricEngine? = null,     val combustionEngine: CombustionEngine? = null,     val dimensions: VehicleDimensions? = null,     val loadType: Set<VehicleLoadType> = emptySet(),     val adrTunnelRestrictionCode: VehicleAdrTunnelRestrictionCode? = null) : Vehicle, Motorized, Large, Freighter

A vehicle of type truck.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

maxSpeed

The truck's maximum speed.

isCommercial

If true, the vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.

electricEngine

The vehicle's electric engine for route and consumption calculation.

combustionEngine

The vehicle's combustion engine for route and consumption calculation.

dimensions

The vehicle's dimensions for route calculation.

loadType

The hazardous materials class of the vehicle's load.

adrTunnelRestrictionCode

The ADR tunnel restrictions of the vehicle.

Constructors

Link copied to clipboard
fun Truck(    maxSpeed: Speed = Speed.kilometersPerHour(0),     isCommercial: Boolean = true,     electricEngine: ElectricEngine? = null,     combustionEngine: CombustionEngine? = null,     dimensions: VehicleDimensions? = null,     loadType: Set<VehicleLoadType> = emptySet(),     adrTunnelRestrictionCode: VehicleAdrTunnelRestrictionCode? = null)

Properties

Link copied to clipboard
open override val adrTunnelRestrictionCode: VehicleAdrTunnelRestrictionCode? = null
Link copied to clipboard
open override val combustionEngine: CombustionEngine? = null
Link copied to clipboard
open override val dimensions: VehicleDimensions? = null
Link copied to clipboard
open override val electricEngine: ElectricEngine? = null
Link copied to clipboard
open override val isCommercial: Boolean = true
Link copied to clipboard
open override val loadType: Set<VehicleLoadType>
Link copied to clipboard
open override val maxSpeed: Speed
Link copied to clipboard
val type: TravelMode