/// 司乘同显乘客端,历史轨迹数据查询请求参数类@interface BMKSCTXHistoryTrackDataOption : NSObject/// 订单号。必选。@property (nonatomic, copy) NSString *orderID;/// 厂商唯一标志符。必选。@property (nonatomic, copy) NSString *userID;/// 订单对应的司机唯一标志符@property (nonatomic, copy) NSString *driverID;/// 当前订单号对应的订单状态。@property (nonatomic, assign) BMKSCTXOrderStatus currentStatus;/**要查询该订单的哪个订单状态下的轨迹。传入BMK_SCTX_Order_Status_PickupPassenger,查询接乘客状态下的轨迹传入BMK_SCTX_Order_Status_GoToDestination,查询送乘客状态下的轨迹传入BMK_SCTX_Order_Status_Unspecified,查询订单全流程的轨迹*/@property (nonatomic, assign) BMKSCTXOrderStatus queryStatus;/**构造方法@param orderID 订单号@param userID 厂商标识符@param driverID 司机标识符@param currentStatus 当前的订单状态@param queryStatus 查询哪个订单状态下的轨迹@return 历史轨迹数据查询请求参数对象*/- (instancetype)initWithOrderID:(NSString *)orderID userID:(NSString *)userID driverID:(NSString *)driverID currentStatus:(BMKSCTXOrderStatus)currentStatus queryStatus:(BMKSCTXOrderStatus)queryStatus;@end
例:
BMKSCTXHistoryTrackDataOption *dataOption = [[BMKSCTXHistoryTrackDataOption alloc] initWithOrderID:@"09171945"userID:@"bdsctx_dft"driverID:@"09171946"currentStatus:BMK_SCTX_Order_Status_OrderComplete queryStatus:BMK_SCTX_Order_Status_Unspecified];[self.trackManager queryHistoryTrackData:dataOption];BMKSCTXHistoryTrackDelegate
相关回调:
/**历史轨迹数据查询结果回调@param trackData 历史轨迹数据@prram error 状态码和信息@param manager 查询请求的调用者*/- (void)onQueryHistoryTrackData:(BMKSCTXHistoryTrackData *)trackData error:(NSError *)error byManager:(BMKSCTXHistoryTrackManager *)manager;/**历史轨迹绘制结果回调@param error 状体码和信息@param manager 绘制的调用者*/- (void)onDrawHistoryTrackResult:(NSError *)error byManager:(BMKSCTXHistoryTrackManager *)manager;
上一篇
下一篇
本篇文章对您是否有帮助?