Car

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.

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

Parameters

maxSpeed

The car'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 car's dimensions.

modelId

Specifies the Model ID of the vehicle as obtained from the TomTom Vehicle Database. It allows calculating an EV route without specifying the vehicle's consumption and charging parameters.

Constructors

Link copied to clipboard
constructor(maxSpeed: <Error class: unknown class>? = null, isCommercial: Boolean = false, electricEngine: ElectricEngine? = null, combustionEngine: CombustionEngine? = null, dimensions: VehicleDimensions? = null, modelId: String? = null)

Properties

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 = false
Link copied to clipboard
open override val maxSpeed: <Error class: unknown class>? = null
Link copied to clipboard
open override val modelId: String? = null
Link copied to clipboard