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