VehicleProperty
public enum VehicleProperty
Vehicle property attributes.
Each VehicleProperty
represents one property of the TomTomSDKCommon/Vehicle
model, and shares its PropertyID
.
Used for updating vehicle state via
updateVehicleProperties(_:)
.
-
Represents
TomTomSDKCommon/VehicleDimensions/weight
property of the vehicle.Declaration
Swift
case weight(Measurement<UnitMass>)
-
Represents
TomTomSDKCommon/VehicleDimensions/axleWeight
property of the vehicle.Declaration
Swift
case axleWeight(Measurement<UnitMass>)
-
Represents
TomTomSDKCommon/VehicleDimensions/length
property of the vehicle.Declaration
Swift
case length(Measurement<UnitLength>)
-
Represents
TomTomSDKCommon/VehicleDimensions/width
property of the vehicle.Declaration
Swift
case width(Measurement<UnitLength>)
-
Represents
TomTomSDKCommon/VehicleDimensions/height
property of the vehicle.Declaration
Swift
case height(Measurement<UnitLength>)
-
Represents
TomTomSDKCommon/Vehicle/maxSpeed
property of the vehicle.Declaration
Swift
case maxSpeed(Measurement<UnitSpeed>)
-
Represents
TomTomSDKCommon/Motorized/isCommercial
property of the vehicle.Declaration
Swift
case isCommercial(Bool)
-
Represents
TomTomSDKCommon/CargoCapable/hazmatClasses
property of the vehicle.Used for updating types of cargo, that may be classified as hazardous materials and restricted from some roads.
Declaration
Swift
case hazmatClasses(Set<HazmatClass>)
-
Represents
TomTomSDKCommon/CargoCapable/adrTunnelRestrictionCode
property of the vehicle.Used for updating the restriction level for tunnel usage according to the ‘European Agreement concerning the International Carriage of Dangerous Goods by Road’ (ADR) tunnel restrictions.
Declaration
Swift
case adrTunnelRestrictionCode(ADRTunnelRestrictionCode)
-
Represents
TomTomSDKCommon/CombustionEngine
property of the vehicle.Declaration
Swift
case combustionEngine([CombustionEngineProperty])
-
Represents
TomTomSDKCommon/ElectricEngine
property of the vehicle.Declaration
Swift
case electricEngine([ElectricEngineProperty])
-
Unique identifier of the property.
Declaration
Swift
public var id: PropertyID { get }