Van
public struct Van : Vehicle, Motorized, CargoCapable, InternalConformanceLocked
A vehicle of type van.
Note
This option is not yet supported with the Orbis map.ADR tunnel restriction code of the vehicle.
Declaration
Swift
public var adrTunnelRestrictionCode: ADRTunnelRestrictionCode?
The vehicle’s combustion engine.
Note
This option is mutually exclusive with the optionmodelID
.
Declaration
Swift
public var combustionEngine: CombustionEngine?
The vehicle’s dimensions.
Note
This option is mutually exclusive with the optionmodelID
.
Declaration
Swift
public var dimensions: VehicleDimensions?
The vehicle’s electric engine.
Declaration
Swift
public var electricEngine: ElectricEngine?
The hazardous materials classes of the vehicle’s load.
Declaration
Swift
public var hazmatClasses: Set<HazmatClass>
init(maxSpeed:isCommercial:combustionEngine:electricEngine:dimensions:hazmatClasses:adrTunnelRestrictionCode:modelID:)
Creates van.
Note
The parameters maxSpeed, combustionEngine, and dimensions are mutually exclusive with the parameter modelID.
Declaration
Swift
public init(
maxSpeed: Measurement<UnitSpeed>? = nil,
isCommercial: Bool = false,
combustionEngine: CombustionEngine? = nil,
electricEngine: ElectricEngine? = nil,
dimensions: VehicleDimensions? = nil,
hazmatClasses: Set<HazmatClass> = [],
adrTunnelRestrictionCode: ADRTunnelRestrictionCode? = nil,
modelID: VehicleModelID? = nil
)
Parameters
maxSpeed
|
Specifies max van speed. |
isCommercial
|
If true, the vehicle is used for commercial purposes and thus may not be allowed to drive on some roads. |
combustionEngine
|
The vehicle’s combustion engine. |
electricEngine
|
The vehicle’s electric engine. |
dimensions
|
The vehicle’s dimension. |
hazmatClasses
|
The hazardous materials classes of the vehicle’s load. |
adrTunnelRestrictionCode
|
ADR tunnel restriction code of the vehicle. |
modelID
|
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. |
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
Specifies the max speed of the vehicle.
Note
This option is mutually exclusive with the optionmodelID
.
Declaration
Swift
public let maxSpeed: Measurement<UnitSpeed>?
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.
Note
If this option is set, some of the vehicle’s consumption and charging parameters are ignored.Declaration
Swift
public var modelID: VehicleModelID?
Specifies the vehicle type.
Declaration
Swift
public let type: VehicleType