BaiduMap_IOSSDK_v5.4.0_Docs
BMKRouteSearchType.h
1 /*
2  * BMKRouteSearchType.h
3  * BMapKit
4  *
5  * Copyright 2011 Baidu Inc. All rights reserved.
6  *
7  */
8 
9 #import <CoreLocation/CoreLocation.h>
10 #import <Foundation/Foundation.h>
11 #import "BMKPoiSearchType.h"
12 #import <BaiduMapAPI_Base/BMKTypes.h>
13 
15 typedef enum {
16  BMK_BUSLINE = 0,
17  BMK_SUBWAY = 1,
18  BMK_WAKLING = 2,
19 } BMKTransitStepType;
20 
21 
23 typedef enum {
24  BMK_TRANSIT_SUBWAY = 0,
25  BMK_TRANSIT_TRAIN = 1,
26  BMK_TRANSIT_PLANE = 2,
27  BMK_TRANSIT_BUSLINE = 3,
28  BMK_TRANSIT_DRIVING = 4,
29  BMK_TRANSIT_WAKLING = 5,
30  BMK_TRANSIT_COACH = 6,
31 } BMKMassTransitType;
32 
33 
35 typedef enum {
36  BMK_INDOOR_STEP_NODE_TYPE_ELEVATOR = 1,
37  BMK_INDOOR_STEP_NODE_TYPE_ESCALATOR = 2,
38  BMK_INDOOR_STEP_NODE_TYPE_STAIR = 3,
39  BMK_INDOOR_STEP_NODE_TYPE_SECURITY_CHECK = 4,
40 } BMKIndoorStepNodeType;
41 
42 
43 typedef enum {
44  BMK_TRANSIT_TIME_FIRST = 3, //较快捷(公交)
45  BMK_TRANSIT_TRANSFER_FIRST = 4, //少换乘(公交)
46  BMK_TRANSIT_WALK_FIRST = 5, //少步行(公交)
47  BMK_TRANSIT_NO_SUBWAY = 6, //不坐地铁
48 } BMKTransitPolicy;
49 
50 
52 typedef enum {
53  BMK_MASS_TRANSIT_INCITY_RECOMMEND = 0,//推荐
54  BMK_MASS_TRANSIT_INCITY_TRANSFER_FIRST = 1,//少换乘
55  BMK_MASS_TRANSIT_INCITY_WALK_FIRST = 2,//少步行
56  BMK_MASS_TRANSIT_INCITY_NO_SUBWAY = 3,//不坐地铁
57  BMK_MASS_TRANSIT_INCITY_TIME_FIRST = 4,//较快捷
58  BMK_MASS_TRANSIT_INCITY_SUBWAY_FIRST = 5,//地铁优先
59 } BMKMassTransitIncityPolicy;
60 
61 
63 typedef enum {
64  BMK_MASS_TRANSIT_INTERCITY_TIME_FIRST = 0,//较快捷
65  BMK_MASS_TRANSIT_INTERCITY_START_EARLY = 1,//出发早
66  BMK_MASS_TRANSIT_INTERCITY_PRICE_FIRST = 2,//价格低
67 } BMKMassTransitIntercityPolicy;
68 
69 
71 typedef enum {
72  BMK_MASS_TRANSIT_INTERCITY_TRANS_TRAIN_FIRST = 0,//火车优先
73  BMK_MASS_TRANSIT_INTERCITY_TRANS_PLANE_FIRST = 1,//飞机优先
74  BMK_MASS_TRANSIT_INTERCITY_TRANS_BUS_FIRST = 2,//大巴优先
75 } BMKMassTransitIntercityTransPolicy;
76 
77 
78 typedef enum {
79  BMK_DRIVING_BLK_FIRST = -1, //躲避拥堵(自驾)
80  BMK_DRIVING_TIME_FIRST = 0, //最短时间(自驾)
81  BMK_DRIVING_DIS_FIRST = 1, //最短路程(自驾)
82  BMK_DRIVING_FEE_FIRST, //少走高速(自驾)
83 } BMKDrivingPolicy;
84 
85 
86 
87 typedef enum {
88  BMK_DRIVING_REQUEST_TRAFFICE_TYPE_NONE = 0, //不带路况
89  BMK_DRIVING_REQUEST_TRAFFICE_TYPE_PATH_AND_TRAFFICE = 1, //道路和路况
90 }BMKDrivingRequestTrafficType;
91 
92 
94 @interface BMKTaxiInfo : NSObject
96 @property (nonatomic, copy) NSString *desc;
98 @property (nonatomic, assign) int distance;
100 @property (nonatomic, assign) int duration;
102 @property (nonatomic, assign) CGFloat perKMPrice;
104 @property (nonatomic, assign) CGFloat startPrice;
106 @property (nonatomic, assign) int totalPrice;
107 @end
108 
109 
111 @interface BMKVehicleInfo : NSObject
113 @property (nonatomic, copy) NSString *uid;
115 @property (nonatomic, copy) NSString *title;
117 @property (nonatomic, assign) int passStationNum;
119 @property (nonatomic, assign) int totalPrice;
121 @property (nonatomic, assign) int zonePrice;
122 @end
123 
124 
126 @interface BMKTime : NSObject
128 @property (nonatomic, assign) int dates;
130 @property (nonatomic, assign) int hours;
132 @property (nonatomic, assign) int minutes;
134 @property (nonatomic, assign) int seconds;
135 @end
136 
137 
139 @interface BMKRouteNode : NSObject
141 @property (nonatomic, copy) NSString *uid;
143 @property (nonatomic, copy) NSString *title;
145 @property (nonatomic, assign) CLLocationCoordinate2D location;
146 @end
147 
148 
151 @end
152 
153 
155 @interface BMKRouteStep : NSObject
157 @property (nonatomic, assign) int distance;
159 @property (nonatomic, assign) int duration;
161 @property (nonatomic) BMKMapPoint *points;
163 @property (nonatomic, assign) int pointsCount;
164 @end
165 
166 
169 @end
170 
171 
175 @property (nonatomic, strong) BMKRouteNode *entrace;
177 @property (nonatomic, strong) BMKRouteNode *exit;
179 @property (nonatomic, copy) NSString *instruction;
181 @property (nonatomic, assign) BMKTransitStepType stepType;
183 @property (nonatomic, strong) BMKVehicleInfo *vehicleInfo;
184 @end
185 
186 
188 @interface BMKBaseVehicleInfo : NSObject
190 @property (nonatomic, copy) NSString *name;
192 @property (nonatomic, copy) NSString *departureStation;
194 @property (nonatomic, copy) NSString *arriveStation;
196 @property (nonatomic, copy) NSString *departureTime;
198 @property (nonatomic, copy) NSString *arriveTime;
199 @end
200 
201 
205 @property (nonatomic, assign) NSInteger passStationNum;
207 @property (nonatomic, copy) NSString *firstTime;
209 @property (nonatomic, copy) NSString *lastTime;
210 @end
211 
212 
216 @property (nonatomic, assign) CGFloat price;
218 @property (nonatomic, assign) CGFloat discount;
220 @property (nonatomic, copy) NSString *airlines;
222 @property (nonatomic, copy) NSString *bookingUrl;
223 @end
224 
225 
229 @property (nonatomic, assign) CGFloat price;
231 @property (nonatomic, copy) NSString *booking;
232 @end
233 
237 @property (nonatomic, assign) CGFloat price;
239 @property (nonatomic, copy) NSString *bookingUrl;
241 @property (nonatomic, copy) NSString *providerName;
243 @property (nonatomic, copy) NSString *providerUrl;
244 @end
245 
246 
247 
248 @class BMKMassTransitSubStep;
249 
250 
252 @interface BMKMassTransitStep : NSObject
254 @property (nonatomic, assign) BOOL isSubStep;
256 @property (nonatomic, copy) NSArray <BMKMassTransitSubStep *> *steps;
257 @end
258 
259 
263 @property (nonatomic, assign) CLLocationCoordinate2D entraceCoor;
265 @property (nonatomic, assign) CLLocationCoordinate2D exitCoor;
267 @property (nonatomic, copy) NSString *instructions;
269 @property (nonatomic, assign) BMKMassTransitType stepType;
271 @property (nonatomic, strong) BMKBaseVehicleInfo *vehicleInfo;
272 @end
273 
274 
278 @property (nonatomic, assign) int direction;
280 @property (nonatomic, strong) BMKRouteNode *entrace;
282 @property (nonatomic, copy) NSString *entraceInstruction;
284 @property (nonatomic, strong) BMKRouteNode *exit;
286 @property (nonatomic, copy) NSString *exitInstruction;
288 @property (nonatomic, copy) NSString *instruction;
290 @property (nonatomic, assign) int numTurns;
292 @property (nonatomic, assign) BOOL hasTrafficsInfo;
294 @property (nonatomic, copy) NSArray <NSNumber *> *traffics;
301 @property (nonatomic, assign) int roadLevel;
302 
303 @end
304 
305 
307 @interface BMKIndoorStepNode : NSObject
309 @property (nonatomic, assign) CLLocationCoordinate2D coordinate;
311 @property (nonatomic, assign) BMKIndoorStepNodeType type;
313 @property (nonatomic, copy) NSString *desc;
314 @end
315 
316 
320 @property (nonatomic, strong) BMKRouteNode *entrace;
322 @property (nonatomic, strong) BMKRouteNode *exit;
324 @property (nonatomic, copy) NSString *instructions;
326 @property (nonatomic, copy) NSString *buildingid;
328 @property (nonatomic, copy) NSString *floorid;
330 @property (nonatomic, copy) NSArray <BMKIndoorStepNode *> *indoorStepNodes;
331 @end
332 
333 
337 @property (nonatomic, assign) int direction;
339 @property (nonatomic, strong) BMKRouteNode *entrace;
341 @property (nonatomic, copy) NSString *entraceInstruction;
343 @property (nonatomic, strong) BMKRouteNode *exit;
345 @property (nonatomic, copy) NSString *exitInstruction;
347 @property (nonatomic, copy) NSString *instruction;
348 @end
349 
350 
354 @property (nonatomic, assign) NSInteger direction;
356 @property (nonatomic, strong) BMKRouteNode *entrace;
358 @property (nonatomic, copy) NSString *entraceInstruction;
360 @property (nonatomic, strong) BMKRouteNode *exit;
362 @property (nonatomic, copy) NSString *exitInstruction;
364 @property (nonatomic, copy) NSString *instruction;
365 @end
366 
367 
370 @interface BMKRouteLine : NSObject
372 @property (nonatomic, assign) int distance;
374 @property (nonatomic, strong) BMKTime *duration;
376 @property (nonatomic, strong) BMKRouteNode *starting;
378 @property (nonatomic, strong) BMKRouteNode *terminal;
380 @property (nonatomic, copy) NSString *title;
382 @property (nonatomic, copy) NSArray *steps;
383 @end
384 
385 
388 @end
389 
390 
394 @property (nonatomic, assign) CGFloat price;
395 @end
396 
397 
400 @end
401 
402 
406 @property (nonatomic, assign) BOOL isSupportTraffic;
408 @property (nonatomic, copy) NSArray <BMKPlanNode *> *wayPoints;
410 @property (nonatomic, assign) NSInteger lightNum;
412 @property (nonatomic, assign) NSInteger congestionMetres;
414 @property (nonatomic, assign) NSInteger taxiFares;
416 @property (nonatomic, assign) NSInteger toll;
417 
418 @end
419 
422 @end
423 
426 @end
427 
429 @class BMKCityListInfo;
430 @interface BMKSuggestAddrInfo : NSObject
432 @property (nonatomic, copy) NSArray <BMKPoiInfo *> *startPoiList;
434 @property (nonatomic, copy) NSArray <BMKCityListInfo *> *startCityList;
436 @property (nonatomic, copy) NSArray <BMKPoiInfo *> *endPoiList;
438 @property (nonatomic, copy) NSArray <BMKCityListInfo *> *endCityList;
440 @property (nonatomic, copy) NSArray <NSArray<BMKPoiInfo *> *> *wayPointPoiList;
442 @property (nonatomic, copy) NSArray <NSArray<BMKCityListInfo *> *> *wayPointCityList;
443 @end
444 
445 #pragma mark - 城市列表信息类
446 @interface BMKCityListInfo : NSObject
449 @property (nonatomic, copy) NSString *city;
451 @property (nonatomic, assign) NSInteger num;
452 
453 @end
公共交通方案里的交通工具信息类 - 飞机
Definition: BMKRouteSearchType.h:214
此类表示公交线路中的一个路段
Definition: BMKRouteSearchType.h:168
室内路线结点
Definition: BMKRouteSearchType.h:307
int totalPrice
总价(预估) , 单位: 元
Definition: BMKRouteSearchType.h:106
公共交通方案里的交通工具信息类- 公交车、地铁
Definition: BMKRouteSearchType.h:203
此类表示步行路线中的一个路段
Definition: BMKRouteSearchType.h:335
int duration
总耗时,单位: 秒
Definition: BMKRouteSearchType.h:100
路线换乘方案里的交通工具信息类
Definition: BMKRouteSearchType.h:111
此类表示一条公共交通路线
Definition: BMKRouteSearchType.h:392
此类表示室内路线的一个路段
Definition: BMKRouteSearchType.h:318
此类表示一个室内路线
Definition: BMKRouteSearchType.h:399
NSString * desc
路线打车描述信息
Definition: BMKRouteSearchType.h:96
此类表示骑行路线中的一个路段
Definition: BMKRouteSearchType.h:352
此类表示一条驾车路线
Definition: BMKRouteSearchType.h:404
CGFloat startPrice
起步价(白天),单位 元
Definition: BMKRouteSearchType.h:104
CGFloat perKMPrice
每千米单价(白天),单位 元
Definition: BMKRouteSearchType.h:102
此类表示一条骑行路线
Definition: BMKRouteSearchType.h:425
Definition: BMKRouteSearchType.h:430
此类表示路线中的一节点,节点包括:路线起终点,公交站点等
Definition: BMKRouteSearchType.h:139
打车信息类
Definition: BMKRouteSearchType.h:94
此类表示公共交通路线中的一个路段
Definition: BMKRouteSearchType.h:261
公共交通方案里的交通工具信息类 - 火车
Definition: BMKRouteSearchType.h:227
公共交通方案里的交通工具信息类 - 大巴
Definition: BMKRouteSearchType.h:235
此类表示驾车路线中的一个路段
Definition: BMKRouteSearchType.h:276
此类代表一个时间段,每个属性都是一个时间段。
Definition: BMKRouteSearchType.h:126
城市列表信息类
Definition: BMKRouteSearchType.h:447
此类表示公交站点信息
Definition: BMKRouteSearchType.h:150
此类表示一条步行路线
Definition: BMKRouteSearchType.h:421
此类表示公共交通路线中的路段
Definition: BMKRouteSearchType.h:252
int distance
总路程,单位: 米
Definition: BMKRouteSearchType.h:98
此类表示一个换乘路线,换乘路线将根据既定策略调配多种交通工具
Definition: BMKRouteSearchType.h:387
此类表示路线中的一个路段(基类)
Definition: BMKRouteSearchType.h:155
公共交通方案里的交通工具信息基类类
Definition: BMKRouteSearchType.h:188
此类表示公交换乘路线中的一个路段
Definition: BMKRouteSearchType.h:173
Definition: BMKRouteSearchType.h:370
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:190