Consumption
public struct Consumption
Describes capacity and the consumption of the EV.
Note
This option is not yet supported with the Orbis map.Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates an instance of
Consumption.Throws
VehicleError.invalidVehicleSnapshotif speed consumption is invalid.Declaration
Swift
public init ( auxiliaryPower: Measurement<UnitPower>? = nil, speedConsumption: [Measurement<UnitSpeed>: Measurement<TTUnitElectricEfficiency>] ) throwsParameters
auxiliaryPowerSpecifies the power consumed by sustaining auxiliary systems. It can specify consumption from devices and systems such as climate control (AC and heat), radio, etc.
speedConsumptionSpecifies the speed-dependent component of consumption. Provided as an unordered list of speed/consumption-rate in pairs.
-
Specifies the amount of power consumed by auxiliary systems. It can specify consumption due to devices and systems such as climate control (AC and heat), radio, etc.
Declaration
Swift
public let auxiliaryPower: Measurement<UnitPower>? -
Specifies the maximum electric energy supply that may be stored in the vehicle’s battery. Provided as an unordered list of speed/consumption-rate in pairs.
Declaration
Swift
public let speedConsumption: [Measurement<UnitSpeed> : Measurement<TTUnitElectricEfficiency>]
TomTom SDK for iOS (TomTomSDKMapMatchingEngineHybrid 0.38.0-rc01 Docs)
Consumption