Vehicle
Specifies the vehicle (or lack of one).
Important: This is a Public Preview API. It may be changed or removed at any time.
Parameters
type
The type of the vehicle.
Inheritors
Types
Link copied to clipboard
data class Bus(val maxSpeed: Speed? = null, val isCommercial: Boolean = true, val electricEngine: ElectricEngine? = null, val combustionEngine: CombustionEngine? = null, val dimensions: VehicleDimensions? = null, val modelId: String? = null) : Vehicle, Motorized
A vehicle of type bus.
Link copied to clipboard
data class Car(val maxSpeed: Speed? = null, val isCommercial: Boolean = false, val electricEngine: ElectricEngine? = null, val combustionEngine: CombustionEngine? = null, val dimensions: VehicleDimensions? = null, val modelId: String? = null) : Vehicle, Motorized
A vehicle of type car.
Link copied to clipboard
data class Motorcycle(val maxSpeed: Speed? = null, val isCommercial: Boolean = false, val electricEngine: ElectricEngine? = null, val combustionEngine: CombustionEngine? = null, val dimensions: VehicleDimensions? = null, val modelId: String? = null) : Vehicle, Motorized
A vehicle of type motorcycle.
Link copied to clipboard
data class Pedestrian(val maxSpeed: Speed = Speed.kilometersPerHour(PEDESTRIAN_SPEED_KMH)) : Vehicle
A pedestrian.
Link copied to clipboard
data class Taxi(val maxSpeed: Speed? = null, val isCommercial: Boolean = true, val electricEngine: ElectricEngine? = null, val combustionEngine: CombustionEngine? = null, val dimensions: VehicleDimensions? = null, val modelId: String? = null) : Vehicle, Motorized
A vehicle of type taxi.
Link copied to clipboard
data class Truck(val maxSpeed: Speed? = null, val isCommercial: Boolean = true, val electricEngine: ElectricEngine? = null, val combustionEngine: CombustionEngine? = null, val dimensions: VehicleDimensions? = null, val loadType: Set<VehicleLoadType> = emptySet(), val adrTunnelRestrictionCode: AdrTunnelRestrictionCode? = null, val modelId: String? = null) : Vehicle, Motorized, CargoCapable
A vehicle of type truck.
Link copied to clipboard
data class Van(val maxSpeed: Speed? = null, val isCommercial: Boolean = false, val electricEngine: ElectricEngine? = null, val combustionEngine: CombustionEngine? = null, val dimensions: VehicleDimensions? = null, val modelId: String? = null, val loadType: Set<VehicleLoadType> = emptySet(), val adrTunnelRestrictionCode: AdrTunnelRestrictionCode? = null) : Vehicle, Motorized, CargoCapable
A vehicle of type van.