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

# init(kilowattHours:)

Creates additional route information for battery energy in kilowatt-hours.

```
convenience init(kilowattHours: Measurement<UnitEnergy>)
```

## Parameters

`kilowattHours`

A measurement of battery energy using @c NSUnitEnergy.kilowattHours

## Return Value

A new @c CPRouteDetail instance representing the battery energy

## Discussion

Use this method to display battery levels for electric vehicles using absolute energy measurements
rather than percentages. This provides more meaningful information for users familiar with their
vehicle’s battery capacity.

\discussion Displaying battery in kilowatt-hours helps users better understand range and charging
needs, particularly for long trips or when comparing vehicles with different battery capacities.
A 10% battery in a 100 kWh vehicle (10 kWh) provides very different range than 10% in a 40 kWh
vehicle (4 kWh).
\note Most electric vehicles use kilowatt-hours as the standard unit for battery capacity. The
system automatically formats this with the “kWh” abbreviation.

---

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)