BaiduMap_IOSSDK_v7.1.0_Docs 7.1.0

BMKDrivingRouteSearchResult.h
浏览该文件的文档.
1 //
2 // BMKDrivingRouteSearchResult.h
3 // SearchComponent
4 //
5 // Created by zhangbaojin on 2026/1/8.
6 // Copyright © 2026 Baidu. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import <CoreLocation/CoreLocation.h>
11 #import "BMKDrivingRouteSearchType.h"
12 #import "BMKRouteSearchType.h"
13
14 NS_ASSUME_NONNULL_BEGIN
15
16 @class BMKDrivingRouteSearchRestrictionInfo;
17 @class BMKSearchDrivingRouteWalkInfo;
18 @class BMKPlanNode;
19
22 @interface BMKDrivingRouteSearchResult : NSObject
23
25 @property (nonatomic, copy, nullable) NSString *restriction;
26
28 @property (nonatomic, assign) NSInteger total;
29
31 @property (nonatomic, copy, nullable) NSArray<BMKDrivingRouteLine *> *routes;
32
34 @property (nonatomic, copy, nullable) NSArray<BMKSearchDrivingRouteWalkInfo *> *endWalk;
35
37 @property (nonatomic, copy, nullable) NSArray<BMKSearchDrivingRouteWalkInfo *> *startWalk;
38
40 @property (nonatomic, strong, nullable) BMKPlanNode *origin;
41
43 @property (nonatomic, strong, nullable) BMKPlanNode *destination;
44
46 @property (nonatomic, copy, nullable) NSArray<BMKPlanNode *> *waypoints;
47
48 @end
49
51 @interface BMKSearchDrivingRouteWalkInfo : NSObject
52
54 @property (nonatomic, assign) NSInteger distance;
55
57 @property (nonatomic, copy, nullable) NSString *pts;
58
59 @end
60
62 @interface BMKDrivingRouteSearchRestrictionInfo : NSObject
63
65 @property (nonatomic, assign) NSInteger status;
66
69 @property (nonatomic, copy, nullable) NSString *desc;
70
71 @end
72
73 NS_ASSUME_NONNULL_END
BMKDrivingRouteSearchResult::total
NSInteger total
返回方案的总数
Definition: BMKDrivingRouteSearchResult.h:28
BMKDrivingRouteSearchResult::origin
BMKPlanNode * origin
起点
Definition: BMKDrivingRouteSearchResult.h:40
BMKDrivingRouteSearchResult::endWalk
NSArray< BMKSearchDrivingRouteWalkInfo * > * endWalk
终点步导路线
Definition: BMKDrivingRouteSearchResult.h:34
BMKDrivingRouteSearchRestrictionInfo
限行信息类
Definition: BMKDrivingRouteSearchResult.h:63
BMKDrivingRouteSearchType.h
BMKDrivingRouteSearchResult
Definition: BMKDrivingRouteSearchResult.h:23
BMKRouteSearchType.h
BMKDrivingRouteSearchResult::routes
NSArray< BMKDrivingRouteLine * > * routes
返回的方案集，成员类型为BMKDrivingRouteLine
Definition: BMKDrivingRouteSearchResult.h:31
BMKDrivingRouteSearchResult::destination
BMKPlanNode * destination
终点
Definition: BMKDrivingRouteSearchResult.h:43
BMKDrivingRouteSearchResult::startWalk
NSArray< BMKSearchDrivingRouteWalkInfo * > * startWalk
起点步导路线
Definition: BMKDrivingRouteSearchResult.h:37
BMKPlanNode
线路检索节点信息,一个路线检索节点可以通过经纬度坐标或城市名加地名确定
Definition: BMKTypes.h:362
BMKDrivingRouteSearchResult::waypoints
NSArray< BMKPlanNode * > * waypoints
途经点列表
Definition: BMKDrivingRouteSearchResult.h:46
BMKSearchDrivingRouteWalkInfo
步导路线信息类
Definition: BMKDrivingRouteSearchResult.h:52
BMKDrivingRouteSearchResult::restriction
NSString * restriction
限行结果提示信息。若无限行路线，则返回空；若无法规避限行，则返回限行提示信息
Definition: BMKDrivingRouteSearchResult.h:25