Class

INRideStatus

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

Declaration

@interface INRideStatus : NSObject

Overview

When the user books a ride or requests the status of a ride, you create an INRideStatus object as part of your response and fill it with the relevant information. A ride status object conveys information about the current status of a ride, such as whether the ride is ongoing, completed, or has yet to occur. This object also contains details about the ride such as the pickup location, drop-off location, and information about the driver and vehicle. Siri and Maps display the information in this object to the user at appropriate times.

When configuring ride status objects, always provide values for as many properties as possible. Siri and Maps display almost all of the information that you provide to the user, so it is good to offer as many details as you can.

Topics

Accessing the Ride Identifier

rideIdentifier

The unique string that you use to identify the ride.

Specifying the Ride Status

phase

The current status of the ride.

INRidePhase

Constants indicating the current ride status.

completionStatus

Information about how the ride ended.

Accessing Ride Information

vehicle

The vehicle assigned to pick up the user.

driver

The driver providing the ride.

rideOption

Information about the type of ride that you are offering to the user.

Accessing the Pickup and Drop Off Times

scheduledPickupTime

The scheduled pickup time for the user.

estimatedPickupDate

The estimated pickup time for the ride.

estimatedPickupEndDate

The date after which the driver may stop waiting for the user.

estimatedDropOffDate

The estimated drop-off time for the ride.

Accessing the Route Information

pickupLocation

The starting location for the ride.

waypoints

The intermediate waypoints for the journey.

dropOffLocation

The destination of the user.

Providing User Activity Objects

userActivityForCancelingInApplication

A user activity object for canceling the ride request.

additionalActionActivities

Additional activities that the user may choose to perform while the ride request is active.

Relationships

Inherits From

See Also

Data Objects

INRideOption

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

INRideDriver

Identifying information about a driver of a ride service.

INRideVehicle

A specific vehicle used by a ride-booking service.

INRideFareLineItem

A specific type of ride-related charge.

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