---
title: "init(fuelEnergy:)"
framework: carplay
role: symbol
role_heading: Initializer
path: "carplay/cproutedetail/init(fuelenergy:)"
---

# init(fuelEnergy:)

Creates additional route information for fuel energy content.

## Declaration

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

Return Value A new @c CPRouteDetail instance representing the fuel energy

## Discussion

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. note: This method is distinct from battery energy (@c routeDetailWithKilowattHours:) and should be used specifically for fuel-based energy storage systems.
