CombustionEngine
public struct CombustionEngine
A combustion vehicle engine for route planning and consumption estimation.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates an instance of
CombustionEngine.Declaration
Swift
public init( consumption: Consumption? = nil, efficiency: Efficiency? = nil, currentFuel: Measurement<UnitVolume>? = nil )Parameters
consumptionSpecifies the consumption model of the vehicle.
efficiencySpecifies the engine’s efficiency.
currentFuelCurrent amount of fuel, for example in liters.
-
Specifies the efficiency of the vehicle.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct Efficiency -
Describes parameters used to determine the vehicle power and consumption.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct Consumption -
Describes parameters used to determine the vehicle power and consumption.
Declaration
Swift
public let consumption: Consumption? -
Specifies the efficiency of the engine.
Declaration
Swift
public let efficiency: Efficiency? -
Current amount of fuel, for example in liters.
Declaration
Swift
public let currentFuel: Measurement<UnitVolume>?
CombustionEngine Structure Reference