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.

Types

Link copied to clipboard
data class Bicycle(val maxSpeed: Speed = Speed.kilometersPerHour(BICYCLE_SPEED_KMH)) : Vehicle

A vehicle of type bicycle.

Link copied to clipboard
data class Bus(    val maxSpeed: Speed = Speed.kilometersPerHour(0),     val isCommercial: Boolean = true,     val electricEngine: ElectricEngine? = null,     val combustionEngine: CombustionEngine? = null,     val dimensions: VehicleDimensions? = null) : Vehicle, Motorized, Large

A vehicle of type bus.

Link copied to clipboard
data class Car(    val maxSpeed: Speed = Speed.kilometersPerHour(0),     val isCommercial: Boolean = false,     val electricEngine: ElectricEngine? = null,     val combustionEngine: CombustionEngine? = null) : Vehicle, Motorized

A vehicle of type car.

Link copied to clipboard
data class Motorcycle(    val maxSpeed: Speed = Speed.kilometersPerHour(0),     val isCommercial: Boolean = false,     val electricEngine: ElectricEngine? = null,     val combustionEngine: CombustionEngine? = 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 = Speed.kilometersPerHour(0),     val isCommercial: Boolean = true,     val electricEngine: ElectricEngine? = null,     val combustionEngine: CombustionEngine? = null) : Vehicle, Motorized

A vehicle of type taxi.

Link copied to clipboard
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.

Link copied to clipboard
data class Van(    val maxSpeed: Speed = Speed.kilometersPerHour(0),     val isCommercial: Boolean = false,     val electricEngine: ElectricEngine? = null,     val combustionEngine: CombustionEngine? = null) : Vehicle, Motorized

A vehicle of type van.

Properties

Link copied to clipboard
abstract val maxSpeed: Speed
Link copied to clipboard
val type: TravelMode

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard