Class

INRideFareLineItem

A specific type of ride-related charge.

Declaration

@interface INRideFareLineItem : NSObject

Overview

Create one or more 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 object is optional but recommended when the cost of the ride involves separate charges. When appropriate, create one or more 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:

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

Getting the Line Item Information

title

The localized string containing a description of the charge.

price

The cost value of the line item.

currencyCode

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

Relationships

Inherits From

See Also

Data Objects

INRideOption

Details about a type of ride offered by your ride-booking service.

INRideStatus

The status of a ride booked through a ride-booking service.

INRideDriver

Identifying information about a driver of a ride service.

INRideVehicle

A specific vehicle used by a ride-booking service.

INRidePartySizeOption

The price of a ride involving the specified number of people.

INRideCompletionStatus

Additional details about whether a ride completed successfully or someone canceled the ride.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software