PropertyID
public enum PropertyID : Equatable
Unique identifier of each property supported Vehicle
implementations.
-
Unique identifier of
VehicleType
property.To access the property value from the
Vehicle
, use the following snippet:let vehicleType = vehicle.type
Declaration
Swift
case type
-
Unique identifier of
weight
property.To access the property value from the
Vehicle
, use the following snippet:let weight = (vehicle as? Motorized)?.dimensions?.weight
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let weight = (vehicle as? Car)?.dimensions?.weight
Declaration
Swift
case weight
-
Unique identifier of
axleWeight
property.To access the property value from the
Vehicle
, use the following snippet:let axleWeight = (vehicle as? Motorized)?.dimensions?.axleWeight
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let axleWeight = (vehicle as? Car)?.dimensions?.axleWeight
Declaration
Swift
case axleWeight
-
Unique identifier of
length
property.To access the property value from the
Vehicle
, use the following snippet:let length = (vehicle as? Motorized)?.dimensions?.length
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let length = (vehicle as? Car)?.dimensions?.length
Declaration
Swift
case length
-
Unique identifier of
width
property.To access the property value from the
Vehicle
, use the following snippet:let width = (vehicle as? Motorized)?.dimensions?.width
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let width = (vehicle as? Car)?.dimensions?.width
Declaration
Swift
case width
-
Unique identifier of
height
property.To access the property value from the
Vehicle
, use the following snippet:let height = (vehicle as? Motorized)?.dimensions?.height
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let height = (vehicle as? Car)?.dimensions?.height
Declaration
Swift
case height
-
Unique identifier of
isCommercial
property.To access the property value from the
Vehicle
, use the following snippet:let isCommercial = (vehicle as? Motorized)?.isCommercial
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let isCommercial = (vehicle as? Car)?.isCommercial
Declaration
Swift
case isCommercial
-
Unique identifier of
hazmatClasses
property.To access the property value from the
Vehicle
, use the following snippet:let hazmatClasses = (vehicle as? CargoCapable)?.hazmatClasses
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let hazmatClasses = (vehicle as? Truck)?.hazmatClasses
Declaration
Swift
case hazmatClasses
-
Unique identifier of
adrTunnelRestrictionCode
property.To access the property value from the
Vehicle
, use the following snippet:let adrTunnelRestrictionCode = (vehicle as? CargoCapable)?.adrTunnelRestrictionCode
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let adrTunnelRestrictionCode = (vehicle as? Truck)?.adrTunnelRestrictionCode
Declaration
Swift
case adrTunnelRestrictionCode
-
Unique identifier of
TomTomSDKCommon/ChargeLevel/currentCharge
property.To access the property value from the
Vehicle
, use the following snippet:let currentCharge = (vehicle as? Motorized)?.electricEngine?.chargeLevel?.currentCharge
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let currentCharge = (vehicle as? Car)?.electricEngine?.chargeLevel?.currentCharge
Declaration
Swift
case currentCharge
-
Unique identifier of
TomTomSDKCommon/ChargeLevel.maxCharge
property.To access the property value from the
Vehicle
, use the following snippet:let maxCharge = (vehicle as? Motorized)?.electricEngine?.chargeLevel?.maxCharge
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let maxCharge = (vehicle as? Car)?.electricEngine?.chargeLevel?.maxCharge
Declaration
Swift
case maxCharge
-
Unique identifier of
altitudeChangeEnergy
property.To access the property value from the
Vehicle
, use the following snippet:let altitudeChangeEnergy = (vehicle as? Motorized)?.electricEngine?.chargeLevel?.altitudeChangeEnergy
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let altitudeChangeEnergy = (vehicle as? Car)?.electricEngine?.chargeLevel?.altitudeChangeEnergy
Declaration
Swift
case altitudeChangeEnergy
-
Unique identifier of
auxiliaryPower
property.To access the property value from the
Vehicle
, use the following snippet:let electricAuxiliaryPower = (vehicle as? Motorized)?.electricEngine?.consumption?.auxiliaryPower
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let electricAuxiliaryPower = (vehicle as? Car)?.electricEngine?.consumption?.auxiliaryPower
Declaration
Swift
case electricAuxiliaryPower
-
Unique identifier of
speedConsumption
property.To access the property value from the
Vehicle
, use the following snippet:let electricSpeedConsumption = (vehicle as? Motorized)?.electricEngine?.consumption?.speedConsumption
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let electricSpeedConsumption = (vehicle as? Car)?.electricEngine?.consumption?.speedConsumption
Declaration
Swift
case electricSpeedConsumption
-
Unique identifier of
ElectricEngine
property.To access the property value from the
Vehicle
, use the following snippet:let electricEngine = (vehicle as? Motorized)?.electricEngine
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let electricEngine = (vehicle as? Car)?.electricEngine
Declaration
Swift
case electricEngine
-
Unique identifier of
currentFuel
property.To access the property value from the
Vehicle
, use the following snippet:let currentFuel = (vehicle as? Motorized)?.combustionEngine?.currentFuel
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let currentFuel = (vehicle as? Car)?.combustionEngine?.currentFuel
Declaration
Swift
case currentFuel
-
Unique identifier of
fuelEnergyDensity
property.To access the property value from the
Vehicle
, use the following snippet:let fuelEnergyDensity = (vehicle as? Motorized)?.combustionEngine?.efficiency?.fuelEnergyDensity
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let fuelEnergyDensity = (vehicle as? Car)?.combustionEngine?.efficiency?.fuelEnergyDensity
Declaration
Swift
case fuelEnergyDensity
-
Unique identifier of
auxiliaryPower
property.To access the property value from the
Vehicle
, use the following snippet:let combustionAuxiliaryPower = (vehicle as? Motorized)?.combustionEngine?.consumption?.auxiliaryPower
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let combustionAuxiliaryPower = (vehicle as? Car)?.combustionEngine?.consumption?.auxiliaryPower
Declaration
Swift
case combustionAuxiliaryPower
-
Unique identifier of
speedConsumption
property.To access the property value from the
Vehicle
, use the following snippet:let combustionSpeedConsumption = (vehicle as? Motorized)?.combustionEngine?.consumption?.speedConsumption
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let combustionSpeedConsumption = (vehicle as? Car)?.combustionEngine?.consumption?.speedConsumption
Declaration
Swift
case combustionSpeedConsumption
-
Unique identifier of
CombustionEngine
property.To access the property value from the
Vehicle
, use the following snippet:let combustionEngine = (vehicle as? Motorized)?.combustionEngine
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let combustionEngine = (vehicle as? Car)?.combustionEngine
Declaration
Swift
case combustionEngine
-
Unique identifier of
VelocityChangeEfficiency
property.To access the property value from the
Vehicle
, depending on the type of engine, use one of the following snippets:let combustionVelocityChangeEfficiency = (vehicle as? Motorized)?.combustionEngine?.efficiency?.velocityChange let electricVelocityChangeEfficiency = (vehicle as? Motorized)?.electricEngine?.efficiency?.velocityChange
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let combustionVelocityChangeEfficiency = (vehicle as? Car)?.combustionEngine?.efficiency?.velocityChange let electricVelocityChangeEfficiency = (vehicle as? Car)?.electricEngine?.efficiency?.velocityChange
Declaration
Swift
case velocityChangeEfficiency
-
Unique identifier of
AltitudeChangeEfficiency
property.To access the property value from the
Vehicle
, depending on the type of engine, use one of the following snippets:let combustionAltitudeChangeEfficiency = (vehicle as? Motorized)?.combustionEngine?.efficiency?.altitudeChange let electricAltitudeChangeEfficiency = (vehicle as? Motorized)?.electricEngine?.efficiency?.altitudeChange
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let combustionAltitudeChangeEfficiency = (vehicle as? Car)?.combustionEngine?.efficiency?.altitudeChange let electricAltitudeChangeEfficiency = (vehicle as? Car)?.electricEngine?.efficiency?.altitudeChange
Declaration
Swift
case altitudeChangeEfficiency
-
Unique identifier of
TomTomSDKCommon/ChargingParameters.batteryCurve
property.To access the property value from the
Vehicle
, use the following snippet:let batteryCurve = (vehicle as? Motorized)?.electricEngine?.chargingParameters?.batteryCurve
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let batteryCurve = (vehicle as? Car)?.electricEngine?.chargingParameters?.batteryCurve
Declaration
Swift
case batteryCurve
-
Unique identifier of
chargingConnectors
property.To access the property value from the
Vehicle
, use the following snippet:let chargingConnectors = (vehicle as? Motorized)?.electricEngine?.chargingParameters?.chargingConnectors
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let chargingConnectors = (vehicle as? Car)?.electricEngine?.chargingParameters?.chargingConnectors
Declaration
Swift
case chargingConnectors
-
Unique identifier of
chargingTimeOffset
property.To access the property value from the
Vehicle
, use the following snippet:let chargingTimeOffset = (vehicle as? Motorized)?.electricEngine?.chargingParameters?.chargingTimeOffset
or downcast to the concrete
Vehicle
implementation that you configured usingVehicleProvider
:let chargingTimeOffset = (vehicle as? Car)?.electricEngine?.chargingParameters?.chargingTimeOffset
Declaration
Swift
case chargingTimeOffset