Van
A vehicle of type van.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Declaration
Swift
public init( maxSpeed: Measurement<UnitSpeed>? = nil, numberOfAxles: Int? = nil, isCommercial: Bool = false, combustionEngine: CombustionEngine? = nil, electricEngine: ElectricEngine? = nil, dimensions: VehicleDimensions? = nil, modelID: VehicleModelID? = nil )Parameters
maxSpeedSpecifies max van speed.
numberOfAxlesSpecifies the number of vehicle axles.
isCommercialIf true, the vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.
combustionEngineThe vehicle’s combustion engine.
electricEngineThe vehicle’s electric engine.
dimensionsThe vehicle’s dimension.
modelIDSpecifies 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.
-
Specifies the number of vehicle axles.
Declaration
Swift
public let numberOfAxles: Int? -
If true, the vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.
Declaration
Swift
public var isCommercial: Bool -
The vehicle’s combustion engine.
Declaration
Swift
public var combustionEngine: CombustionEngine? -
The vehicle’s electric engine.
Declaration
Swift
public var electricEngine: ElectricEngine? -
The vehicle’s dimensions.
Declaration
Swift
public var dimensions: VehicleDimensions? -
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
public var modelID: VehicleModelID? -
Specifies the max speed of the vehicle.
Declaration
Swift
public let maxSpeed: Measurement<UnitSpeed>? -
Specifies the vehicle type for the specified route.
Declaration
Swift
public let type: VehicleType
Van Structure Reference