HereSDKDemandRide
@interface HereSDKDemandRide : NSObject
A class representing a ride from a specific supplier. Contains relatively static info: driver, vehicle, passengers etc.
-
The ID of the user who ordered the ride
Declaration
Objective-C
@property (readonly, nonatomic) NSString *_Nonnull userId;
Swift
var userId: String { get }
-
The unique ride ID
Declaration
Objective-C
@property (readonly, nonatomic) NSString *_Nonnull rideId;
Swift
var rideId: String { get }
-
The ride’s route
Declaration
Objective-C
@property (readonly, nonatomic) HereSDKDemandRoute *_Nonnull route;
Swift
var route: HereSDKDemandRoute { get }
-
The pre-booked pickup time. Nil if no time was given in the request (meaning that the request is for an immediate ride)
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSDate *prebookPickupTime;
Swift
var prebookPickupTime: Date? { get }
-
Price at the time of booking (if applicable)
Declaration
Objective-C
@property (readonly, nonatomic, nullable) HereSDKDemandPriceEstimate *bookingEstimatedPrice;
Swift
var bookingEstimatedPrice: HereSDKDemandPriceEstimate? { get }
-
Constraints at the time of booking
Declaration
Objective-C
@property (readonly, nonatomic) HereSDKDemandBookingConstraints *_Nonnull constraints;
Swift
var constraints: HereSDKDemandBookingConstraints { get }
-
Ride’s current status, and status history
Declaration
Objective-C
@property (readonly, nonatomic) HereSDKDemandRideStatusLog *_Nonnull statusLog;
Swift
var statusLog: HereSDKDemandRideStatusLog { get }
-
Supplier details
Declaration
Objective-C
@property (readonly, nonatomic) HereSDKDemandSupplier *_Nonnull supplier;
Swift
var supplier: HereSDKDemandSupplier { get }
-
The (optional) passenger note at the time of ride creation
Declaration
Objective-C
@property (readonly, nonatomic) HereSDKDemandPassenger *_Nonnull passenger;
Swift
var passenger: HereSDKDemandPassenger { get }
-
The passenger note at the time of ride creation
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSString *passengerNote;
Swift
var passengerNote: String? { get }
-
Driver details. Empty until the ride status becomes
DRIVER_ASSIGNED
.Declaration
Objective-C
@property (readonly, nonatomic, nullable) HereSDKDemandDriver *driver;
Swift
var driver: HereSDKDemandDriver? { get }
-
The ride vehicle. Empty until the ride status becomes
DRIVER_ASSIGNED
.Declaration
Objective-C
@property (readonly, nonatomic, nullable) HereSDKDemandVehicle *vehicle;
Swift
var vehicle: HereSDKDemandVehicle? { get }
-
Cancellation policy for the ride
Declaration
Objective-C
@property (readonly, nonatomic) HereSDKDemandCancellationPolicy cancellationPolicy;
Swift
var cancellationPolicy: HereSDKDemandCancellationPolicy { get }
-
When a cancellation occurs, contains info about the cancellation
Declaration
Objective-C
@property (readonly, nonatomic, nullable) HereSDKDemandCancellationInfo *cancellationInfo;
Swift
var cancellationInfo: HereSDKDemandCancellationInfo? { get }
-
The price of the ride updated by the supplier. This may be updated around the time of the ride’s end, when the ride’s duration and final price can be known.
Declaration
Objective-C
@property (readonly, nonatomic, nullable) HereSDKDemandPrice *price;
Swift
var price: HereSDKDemandPrice? { get }
-
Chosen payment option for the ride
Declaration
Objective-C
@property (readonly, nonatomic) HereSDKDemandPaymentOption paymentOption;
Swift
var paymentOption: HereSDKDemandPaymentOption { get }
-
This is the actual point where the driver will arrive to pick up the passenger. This may be adjusted slightly in relation to the address that the passenger entered, to ensure that the vehicle can access this location. Display this location rather than the user-defined address, because the confirmed pickup point is where the driver will arrive.
Declaration
Objective-C
@property (readonly, nonatomic) CLLocation *_Nonnull confirmedPickupPoint;
Swift
var confirmedPickupPoint: CLLocation { get }