/// 司乘同显乘客端,历史轨迹数据查询请求参数类@interfacebmksctxhistorytrackdataoption :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;
上一篇
下一篇
本篇文章对您是否有帮助?