Initializes the object with the specified party size and price ranges.
- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.2+
The party size for which the specified pricing applies. The
locationvalue of the range contains the minimum number of people. Adding the
lengthvalues results in the maximum number of people. For example, a range value of (1, 0) represents a single person and a range value of (1, 2) represents 1 to 3 people.
The user-visible description of the party size. Use this parameter to specify a localized string that conveys the party size information to the current user. For example, for a range of 1 to 3 people, you might specify the string “1 to 3 passengers”.
The price range for a party of this size. Include this information when the number of passengers affects the price of the ride. Specify
nilif the party size does not affect the price of the ride.
An initialized party size option object or
nil if the object could not be created.