Initializes the intent object with the specified pickup and drop-off locations.
- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.2+
The starting location of the user.
The user’s destination.
An initialized intent object or
nil if the object could not be created.
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.