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

# init(fuelLevel:)

Creates additional route information for a fuel level.

```
convenience init(fuelLevel: Measurement<UnitVolume>)
```

## Parameters

`fuelLevel`

A measurement representing the remaining fuel level using @c NSUnitVolume. Common units:

- @c NSUnitVolume.liters for gasoline/diesel (metric regions)
- @c NSUnitVolume.gallons for gasoline/diesel (US)
- @c NSUnitVolume.imperialGallons for gasoline/diesel (UK)

## Return Value

A new @c CPRouteDetail instance representing the fuel level

## Discussion

Use this method to display the estimated fuel level upon arrival at the destination. This helps
drivers of liquid-fuel vehicles plan refueling stops along their route.

\discussion The system automatically converts the measurement to the user’s preferred units based on
their region and settings (e.g., liters in metric regions, gallons in the US). Display the estimated
remaining fuel rather than fuel consumed to help users assess whether refueling is necessary.
\note For vehicles with alternative fuel types like compressed natural gas or hydrogen, consider using
@c routeDetailWithFuelMass: or @c routeDetailWithFuelEnergy: as appropriate for the
fuel measurement standard.

---

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)