Motorized

public protocol 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.

  • Specifies whether the vehicle is used for commercial purposes. This may affect legal restrictions to drive on certain roads.

    Declaration

    Swift

    var isCommercial: Bool { get }
  • The vehicle’s electric engine.

    Declaration

    Swift

    var electricEngine: ElectricEngine? { get }
  • The vehicle’s combustion engine.

    Declaration

    Swift

    var combustionEngine: CombustionEngine? { get }
  • The vehicle’s dimensions.

    Declaration

    Swift

    var dimensions: VehicleDimensions? { get }
  • Specifies the Model ID of the vehicle as obtained from the TomTom Vehicle Database. It allows planning an EV route without specifying the vehicle’s consumption and charging parameters.

    Declaration

    Swift

    var modelID: VehicleModelID? { get }