Vehicle

abstract class 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 Bicycle(val maxSpeed: <Error class: unknown class> = Speed.kilometersPerHour(BICYCLE_SPEED_KMH)) : Vehicle

A vehicle of type bicycle.

Link copied to clipboard
data class Bus(val maxSpeed: <Error class: unknown class>? = 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: <Error class: unknown class>? = 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: <Error class: unknown class>? = 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: <Error class: unknown class> = Speed.kilometersPerHour(PEDESTRIAN_SPEED_KMH)) : Vehicle

A pedestrian.

Link copied to clipboard
data class Taxi(val maxSpeed: <Error class: unknown class>? = 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: <Error class: unknown class>? = 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: <Error class: unknown class>? = 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 van.

Properties

Link copied to clipboard
abstract val maxSpeed: <Error class: unknown class>?
Link copied to clipboard