<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INRideFareLineItem",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INRideFareLineItem"
  },
  "title" : "INRideFareLineItem"
}
-->

# INRideFareLineItem

A specific type of ride-related charge.

```
class INRideFareLineItem
```

## Overview

Create one or more [`INRideFareLineItem`](/documentation/Intents/INRideFareLineItem) objects when you need to break down the cost of a ride using different pricing rules. For example, one line item might specify the base charge of the ride and a second line item might specify the per-mile charge. When displaying the ride information to the user, Siri and Maps display the line-item information.

The inclusion of line items in an [`INRideOption`](/documentation/Intents/INRideOption) object is optional but recommended when the cost of the ride involves separate charges. When appropriate, create one or more [`INRideFareLineItem`](/documentation/Intents/INRideFareLineItem) objects and attach them to your ride option object. Siri and Maps use the currency code you specify to apply the appropriate currency designator to the price information.

## Topics

### Initializing a Ride Fare Object

[`-  initWithTitle:price:currencyCode:`](/documentation/Intents/INRideFareLineItem/init(title:price:currencyCode:))

Initializes the line item object with the specified title and pricing information.

### Getting the Line Item Information

[`title`](/documentation/Intents/INRideFareLineItem/title)

The localized string containing a description of the charge.

[`price`](/documentation/Intents/INRideFareLineItem/price)

The cost value of the line item.

[`currencyCode`](/documentation/Intents/INRideFareLineItem/currencyCode)

The ISO 4217 currency code that applies to the price information.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)