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

# init(fuelMass:)

Creates additional route information for fuel mass.

## Declaration

```swift
convenience init(fuelMass: Measurement<UnitMass>)
```

## Parameters

- `fuelMass`: A measurement representing the fuel mass using @c NSUnitMass. Common units: @c NSUnitMass.kilograms for compressed natural gas @c NSUnitMass.pounds for CNG in regions using imperial units

## Return Value

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

## Discussion

Discussion Use this method to display fuel levels for vehicles that measure fuel by mass, such as compressed natural gas (CNG) vehicles. CNG and similar compressed gas systems often measure fuel in mass units rather than volume due to the variable density under pressure. The system formats the mass measurement according to the user’s preferred units.
