Efficiency

public struct Efficiency

Specifies the efficiency of the vehicle.

Note

This option is not supported when chargingOptions are set in RoutePlanningOptions.

Note

This option is not yet supported with the Orbis map.
  • Creates an instance of Efficiency.

    Declaration

    Swift

    public init(
        fuelEnergyDensity: Measurement<TTUnitEnergyDensity>,
        velocityChange: VelocityChangeEfficiency? = nil,
        altitudeChange: AltitudeChangeEfficiency? = nil
    )

    Parameters

    fuelEnergyDensity

    Specifies the amount of chemical energy stored in the fuel, for example, in megajoules per liter. It is used in conjunction with the efficiency parameters for conversions between saved or consumed energy and fuel. For example, energy density is 34.2 MJ/l for gasoline, and 35.8 MJ/l for Diesel fuel.

    velocityChange

    Specifies the efficiency of converting chemical energy to kinetic energy due to accelerations.

    altitudeChange

    Specifies the efficiency of converting chemical energy to potential energy due to increase in altitude.

  • Specifies the amount of chemical energy stored in the fuel, for example in megajoules per liter.

    Declaration

    Swift

    public let fuelEnergyDensity: Measurement<TTUnitEnergyDensity>
  • Specifies the efficiency of converting chemical energy to kinetic energy due to accelerations.

    Declaration

    Swift

    public let velocityChange: VelocityChangeEfficiency?
  • Specifies the efficiency of converting chemical energy to potential energy due to increase in altitude.

    Declaration

    Swift

    public let altitudeChange: AltitudeChangeEfficiency?