<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INListRideOptionsIntent/init(pickupLocation:dropOffLocation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INListRideOptionsIntent(im)initWithPickupLocation:dropOffLocation:"
  },
  "title" : "init(pickupLocation:dropOffLocation:)"
}
-->

# init(pickupLocation:dropOffLocation:)

Initializes the intent object with the specified pickup and drop-off locations.

```
init(pickupLocation: CLPlacemark?, dropOffLocation: CLPlacemark?)
```

## Parameters

`pickupLocation`

The starting location of the user.

`dropOffLocation`

The user’s destination.

## Return Value

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

## Discussion

Normally, you do not create instances of this class yourself. Instead, Maps creates instances when it requires a list of rides offered by your service. 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)