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, isCommercial: Bool = false, combustionEngine: CombustionEngine? = nil, electricEngine: ElectricEngine? = nil, dimensions: VehicleDimensions? = nil, modelID: String? = nil )Parameters
maxSpeedSpecifies max van speed.
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 for route and consumption calculation.
electricEngineThe vehicle’s electric engine for route and consumption calculation.
dimensionsThe vehicle’s dimensions for route calculation.
modelIDSpecifies 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.
-
If true, the vehicle is used for commercial purposes and thus may not be allowed to drive on some roads.
Declaration
Swift
public let isCommercial: Bool -
The vehicle’s combustion engine for route and consumption calculation.
Declaration
Swift
public let combustionEngine: CombustionEngine? -
The vehicle’s electric engine for route and consumption calculation.
Declaration
Swift
public let electricEngine: ElectricEngine? -
The vehicle’s dimensions for route calculation.
Declaration
Swift
public let dimensions: VehicleDimensions? -
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.
Declaration
Swift
public let modelID: String?
-
Copies the current Van with changes specified in build closure
Declaration
Swift
public func copy(build: (inout Builder) -> ()) -> VanParameters
buildThis closure allows for change of Van values
Return Value
Van with the changes set on the closure
-
The
Buildercreates a new instance ofVanwith modified fields.Declaration
Swift
public struct Builder
Van Class Reference