<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INRequestRideIntent/init(pickupLocation:dropOffLocation:rideOptionName:partySize:paymentMethod:scheduledPickupTime:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "s:So19INRequestRideIntentC7IntentsE14pickupLocation07dropOffF014rideOptionName9partySize13paymentMethod19scheduledPickupTimeABSo11CLPlacemarkCSg_ALSo17INSpeakableStringCSgSiSgSo09INPaymentO0CSgSo21INDateComponentsRangeCSgtcfc"
  },
  "title" : "init(pickupLocation:dropOffLocation:rideOptionName:partySize:paymentMethod:scheduledPickupTime:)"
}
-->

# init(pickupLocation:dropOffLocation:rideOptionName:partySize:paymentMethod:scheduledPickupTime:)

Initializes an intent object with the specified ride information.

```
@nonobjc convenience init(pickupLocation: CLPlacemark? = nil, dropOffLocation: CLPlacemark? = nil, rideOptionName: INSpeakableString? = nil, partySize: Int? = nil, paymentMethod: INPaymentMethod? = nil, scheduledPickupTime: INDateComponentsRange? = nil)
```

## Parameters

`pickupLocation`

The starting location for the ride.

`dropOffLocation`

The destination of the ride.

`rideOptionName`

The name of the ride option (if any) selected by the user.

`partySize`

The number of passengers that the ride must accommodate.

`paymentMethod`

The payment method requested by the user.

`scheduledPickupTime`

The time at which the user wants to be picked up.

## Return Value

An initialized intent object or `nil` if the object could not be created.

## Discussion

Normally, you don’t create instances of this class yourself. Instead, SiriKit creates instances when the user tries to book a ride. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.

---

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)