Motorized

interface Motorized

Trait interface for vehicles that may have electric and/or combustion engines. These vehicles may also be subject to restrictions based on their size or weight.

Both engines should be set for a hybrid vehicle. Setting no engine is also fine if consumption is irrelevant for a calculation, such as when requesting a range based on time or distance budgets.

Inheritors

Properties

Link copied to clipboard

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

Link copied to clipboard

The vehicle's dimensions.

Link copied to clipboard

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

Link copied to clipboard
abstract val isCommercial: Boolean

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

Link copied to clipboard
abstract val modelId: String?

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.