Contents

init(fuelEnergy:)

Creates additional route information for fuel energy content.

Declaration

convenience init(fuelEnergy: Measurement<UnitEnergy>)

Parameters

  • fuelEnergy:

    A measurement representing the fuel energy using @c NSUnitEnergy. Common units:

    • @c NSUnitEnergy.kilowattHours for hydrogen fuel cells

    • @c NSUnitEnergy.megajoules for alternative energy measurements

Return Value

A new @c CPRouteDetail instance representing the fuel energy

Discussion

Use this method to display fuel levels for hydrogen fuel cell vehicles or other vehicles where fuel is measured in energy units rather than volume or mass.

Hydrogen fuel cell vehicles often express fuel capacity in kilowatt-hours of energy content. The system formats this appropriately for user display.