Protocol

INListRideOptionsIntentHandling

The handler interface for fetching the list of rides currently available from your ride-booking service.

Overview

Use the methods of the INListRideOptionsIntentHandling protocol to resolve, confirm, and handle requests for information about the types of rides available from your service right now. Maps asks for this information when the user searches for a ride between the specified pickup and drop-off locations. Adopt this protocol in an object of your Intents extension that is capable of retrieving the ride information from your servers.

Ride options represent the categories of vehicles that your service offers and do not represent specific vehicles in your fleet. Each ride option contains information about the passenger capacity and pricing of the corresponding vehicles. You should also provide an estimated time at which one or more vehicles of that type could pick up the user.

Maps may deliver an INListRideOptionsIntent object to your handler object at any time. Maps does not require you to resolve or confirm the contents of a list ride options intent before handling it. User interactions drive the selection of data in Maps, ensuring that the data Maps places into an intent object is already valid.

Topics

Handling the Intent

func handle(intent: INListRideOptionsIntent, completion: (INListRideOptionsIntentResponse) -> Void)

Called when it is time for you to provide the list of ride options.

Required.

Confirming the Response

func confirm(intent: INListRideOptionsIntent, completion: (INListRideOptionsIntentResponse) -> Void)

Called when it is time for you to confirm that you can provide the list of ride options.

Resolving the Intent Parameters

Relationships

Inherits From

See Also

List Ride Options

Generating a List of Ride Options

Generate ride options for Maps to display to the user.

class INListRideOptionsIntent

An intent for getting the types of rides available from a ride-booking service.

class INListRideOptionsIntentResponse

Your app’s response to a list ride options intent.