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

# init(tollAmount:locale:)

Creates additional route information for a toll amount.

```
convenience init(tollAmount value: Double, locale: Locale)
```

## Parameters

`value`

The toll amount as a decimal value (e.g., 5.50 for $5.50)

`locale`

The locale to use for currency formatting. The locale’s currency code determines the
currency symbol and formatting rules. Pass @c [NSLocale currentLocale] to use the user’s
preferred locale, or create a specific locale for fixed currency display.

## Return Value

A new @c CPRouteDetail instance representing the toll amount

## Discussion

Use this method to display toll costs associated with a route. The toll amount will be formatted
according to the provided locale’s currency settings.

\discussion Toll information helps users make informed routing decisions, particularly when comparing
routes with varying toll costs. The system automatically formats the value using the locale’s currency
symbol, decimal separator, and digit grouping conventions.
\note The system displays toll amounts with high visibility during route selection to help users
understand cost implications before committing to a route.

---

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)