<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPRouteDetail/init(fuelEnergy:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPRouteDetail(cm)routeDetailWithFuelEnergy:"
  },
  "title" : "init(fuelEnergy:)"
}
-->

# init(fuelEnergy:)

Creates additional route information for fuel energy content.

```
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.

\discussion Hydrogen fuel cell vehicles often express fuel capacity in kilowatt-hours of energy
content. The system formats this appropriately for user display.
\note This method is distinct from battery energy (@c routeDetailWithKilowattHours:) and should
be used specifically for fuel-based energy storage systems.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)