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.

    Note

    Parameters consumption, efficiency, and currentFuel are not yet supported with the Orbis map.

    Declaration

    Swift

    public init(
        consumption: Consumption? = nil,
        efficiency: Efficiency? = nil,
        currentFuel: Measurement<UnitVolume>? = nil
    )

    Parameters

    consumption

    Specifies the consumption model of the vehicle.

    efficiency

    Specifies the engine’s efficiency.

    currentFuel

    Current amount of fuel, for example in liters.

  • Specifies the efficiency of the vehicle.

    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.
    See more

    Declaration

    Swift

    public struct Efficiency
  • Describes parameters used to determine the vehicle power and consumption.

    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.
    See more

    Declaration

    Swift

    public struct Consumption
  • Describes parameters used to determine the vehicle power and consumption.

    Note

    This option is not yet supported with the Orbis map.

    Declaration

    Swift

    public let consumption: Consumption?
  • Specifies the efficiency of the engine.

    Note

    This option is not yet supported with the Orbis map.

    Declaration

    Swift

    public let efficiency: Efficiency?
  • Current amount of fuel, for example in liters.

    Note

    This option is not yet supported with the Orbis map.

    Declaration

    Swift

    public let currentFuel: Measurement<UnitVolume>?