PropertyID
public enum PropertyID : Equatable
Unique identifier of each property supported TomTomSDKCommon/Vehicle implementations.
-
Unique identifier of
TomTomSDKCommon/VehicleTypeproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let vehicleType = vehicle.typeDeclaration
Swift
case type -
Unique identifier of
TomTomSDKCommon/VehicleDimensions/weightproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let weight = (vehicle as? Motorized)?.dimensions?.weightor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let weight = (vehicle as? Car)?.dimensions?.weightDeclaration
Swift
case weight -
Unique identifier of
TomTomSDKCommon/VehicleDimensions/axleWeightproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let axleWeight = (vehicle as? Motorized)?.dimensions?.axleWeightor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let axleWeight = (vehicle as? Car)?.dimensions?.axleWeightDeclaration
Swift
case axleWeight -
Unique identifier of
TomTomSDKCommon/VehicleDimensions/lengthproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let length = (vehicle as? Motorized)?.dimensions?.lengthor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let length = (vehicle as? Car)?.dimensions?.lengthDeclaration
Swift
case length -
Unique identifier of
TomTomSDKCommon/VehicleDimensions/widthproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let width = (vehicle as? Motorized)?.dimensions?.widthor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let width = (vehicle as? Car)?.dimensions?.widthDeclaration
Swift
case width -
Unique identifier of
TomTomSDKCommon/VehicleDimensions/heightproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let height = (vehicle as? Motorized)?.dimensions?.heightor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let height = (vehicle as? Car)?.dimensions?.heightDeclaration
Swift
case height -
Unique identifier of
TomTomSDKCommon/Vehicle/maxSpeedproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let maxSpeed = vehicle.maxSpeedDeclaration
Swift
case maxSpeed -
Unique identifier of
TomTomSDKCommon/Motorized/isCommercialproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let isCommercial = (vehicle as? Motorized)?.isCommercialor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let isCommercial = (vehicle as? Car)?.isCommercialDeclaration
Swift
case isCommercial -
Unique identifier of
TomTomSDKCommon/CargoCapable/hazmatClassesproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let hazmatClasses = (vehicle as? CargoCapable)?.hazmatClassesor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let hazmatClasses = (vehicle as? Truck)?.hazmatClassesDeclaration
Swift
case hazmatClasses -
Unique identifier of
TomTomSDKCommon/CargoCapable/adrTunnelRestrictionCodeproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let adrTunnelRestrictionCode = (vehicle as? CargoCapable)?.adrTunnelRestrictionCodeor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let adrTunnelRestrictionCode = (vehicle as? Truck)?.adrTunnelRestrictionCodeDeclaration
Swift
case adrTunnelRestrictionCode -
Unique identifier of
TomTomSDKCommon/ChargeLevel/currentChargeproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let currentCharge = (vehicle as? Motorized)?.electricEngine?.chargeLevel?.currentChargeor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let currentCharge = (vehicle as? Car)?.electricEngine?.chargeLevel?.currentChargeDeclaration
Swift
case currentCharge -
Unique identifier of
TomTomSDKCommon/ChargeLevel.maxChargeproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let maxCharge = (vehicle as? Motorized)?.electricEngine?.chargeLevel?.maxChargeor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let maxCharge = (vehicle as? Car)?.electricEngine?.chargeLevel?.maxChargeDeclaration
Swift
case maxCharge -
Unique identifier of
TomTomSDKCommon/ElectricEngine/Efficiency/altitudeChangeEnergyproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let altitudeChangeEnergy = (vehicle as? Motorized)?.electricEngine?.chargeLevel?.altitudeChangeEnergyor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let altitudeChangeEnergy = (vehicle as? Car)?.electricEngine?.chargeLevel?.altitudeChangeEnergyDeclaration
Swift
case altitudeChangeEnergy -
Unique identifier of
TomTomSDKCommon/ElectricEngine/Consumption/auxiliaryPowerproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let electricAuxiliaryPower = (vehicle as? Motorized)?.electricEngine?.consumption?.auxiliaryPoweror downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let electricAuxiliaryPower = (vehicle as? Car)?.electricEngine?.consumption?.auxiliaryPowerDeclaration
Swift
case electricAuxiliaryPower -
Unique identifier of
TomTomSDKCommon/ElectricEngine/Consumption/speedConsumptionproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let electricSpeedConsumption = (vehicle as? Motorized)?.electricEngine?.consumption?.speedConsumptionor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let electricSpeedConsumption = (vehicle as? Car)?.electricEngine?.consumption?.speedConsumptionDeclaration
Swift
case electricSpeedConsumption -
Unique identifier of
TomTomSDKCommon/ElectricEngineproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let electricEngine = (vehicle as? Motorized)?.electricEngineor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let electricEngine = (vehicle as? Car)?.electricEngineDeclaration
Swift
case electricEngine -
Unique identifier of
TomTomSDKCommon/CombustionEngine/currentFuelproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let currentFuel = (vehicle as? Motorized)?.combustionEngine?.currentFuelor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let currentFuel = (vehicle as? Car)?.combustionEngine?.currentFuelDeclaration
Swift
case currentFuel -
Unique identifier of
TomTomSDKCommon/CombustionEngine/Efficiency/fuelEnergyDensityproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let fuelEnergyDensity = (vehicle as? Motorized)?.combustionEngine?.efficiency?.fuelEnergyDensityor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let fuelEnergyDensity = (vehicle as? Car)?.combustionEngine?.efficiency?.fuelEnergyDensityDeclaration
Swift
case fuelEnergyDensity -
Unique identifier of
TomTomSDKCommon/CombustionEngine/Consumption/auxiliaryPowerproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let combustionAuxiliaryPower = (vehicle as? Motorized)?.combustionEngine?.consumption?.auxiliaryPoweror downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let combustionAuxiliaryPower = (vehicle as? Car)?.combustionEngine?.consumption?.auxiliaryPowerDeclaration
Swift
case combustionAuxiliaryPower -
Unique identifier of
TomTomSDKCommon/CombustionEngine/Consumption/speedConsumptionproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let combustionSpeedConsumption = (vehicle as? Motorized)?.combustionEngine?.consumption?.speedConsumptionor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let combustionSpeedConsumption = (vehicle as? Car)?.combustionEngine?.consumption?.speedConsumptionDeclaration
Swift
case combustionSpeedConsumption -
Unique identifier of
TomTomSDKCommon/CombustionEngineproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let combustionEngine = (vehicle as? Motorized)?.combustionEngineor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let combustionEngine = (vehicle as? Car)?.combustionEngineDeclaration
Swift
case combustionEngine -
Unique identifier of
TomTomSDKCommon/VelocityChangeEfficiencyproperty.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?.velocityChangeor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let combustionVelocityChangeEfficiency = (vehicle as? Car)?.combustionEngine?.efficiency?.velocityChange let electricVelocityChangeEfficiency = (vehicle as? Car)?.electricEngine?.efficiency?.velocityChangeDeclaration
Swift
case velocityChangeEfficiency -
Unique identifier of
TomTomSDKCommon/AltitudeChangeEfficiencyproperty.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?.altitudeChangeor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let combustionAltitudeChangeEfficiency = (vehicle as? Car)?.combustionEngine?.efficiency?.altitudeChange let electricAltitudeChangeEfficiency = (vehicle as? Car)?.electricEngine?.efficiency?.altitudeChangeDeclaration
Swift
case altitudeChangeEfficiency -
Unique identifier of
TomTomSDKCommon/ChargingParameters.batteryCurveproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let batteryCurve = (vehicle as? Motorized)?.electricEngine?.chargingParameters?.batteryCurveor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let batteryCurve = (vehicle as? Car)?.electricEngine?.chargingParameters?.batteryCurveDeclaration
Swift
case batteryCurve -
Unique identifier of
TomTomSDKCommon/ElectricEngine/ChargingParameters/chargingConnectorsproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let chargingConnectors = (vehicle as? Motorized)?.electricEngine?.chargingParameters?.chargingConnectorsor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let chargingConnectors = (vehicle as? Car)?.electricEngine?.chargingParameters?.chargingConnectorsDeclaration
Swift
case chargingConnectors -
Unique identifier of
TomTomSDKCommon/ElectricEngine/ChargingParameters/chargingTimeOffsetproperty.To access the property value from the
TomTomSDKCommon/Vehicle, use the following snippet:let chargingTimeOffset = (vehicle as? Motorized)?.electricEngine?.chargingParameters?.chargingTimeOffsetor downcast to the concrete
TomTomSDKCommon/Vehicleimplementation that you configured usingTomTomSDKVehicle/VehicleProvider:let chargingTimeOffset = (vehicle as? Car)?.electricEngine?.chargingParameters?.chargingTimeOffsetDeclaration
Swift
case chargingTimeOffset
TomTom SDK for iOS (0.53.1)
PropertyID