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

# init(fuelLevel:)

Creates additional route information for a fuel level.

## Declaration

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

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

## Discussion

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