百度地图SDK for iOS v3.4.4 类参考
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>
14 typedef enum
15 {
16  BMK_BUSLINE = 0,
17  BMK_SUBWAY = 1,
18  BMK_WAKLING = 2,
19 }BMKTransitStepType;
20 
22 typedef enum
23 {
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 {
37  BMK_INDOOR_STEP_NODE_TYPE_ELEVATOR = 1,
38  BMK_INDOOR_STEP_NODE_TYPE_ESCALATOR = 2,
39  BMK_INDOOR_STEP_NODE_TYPE_STAIR = 3,
40  BMK_INDOOR_STEP_NODE_TYPE_SECURITY_CHECK = 4,
41 }BMKIndoorStepNodeType;
42 
43 typedef enum
44 {
45  BMK_TRANSIT_TIME_FIRST = 3, //较快捷(公交)
46  BMK_TRANSIT_TRANSFER_FIRST = 4, //少换乘(公交)
47  BMK_TRANSIT_WALK_FIRST = 5, //少步行(公交)
48  BMK_TRANSIT_NO_SUBWAY = 6, //不坐地铁
49 }BMKTransitPolicy;
50 
52 typedef enum
53 {
54  BMK_MASS_TRANSIT_INCITY_RECOMMEND = 0,//推荐
55  BMK_MASS_TRANSIT_INCITY_TRANSFER_FIRST = 1,//少换乘
56  BMK_MASS_TRANSIT_INCITY_WALK_FIRST = 2,//少步行
57  BMK_MASS_TRANSIT_INCITY_NO_SUBWAY = 3,//不坐地铁
58  BMK_MASS_TRANSIT_INCITY_TIME_FIRST = 4,//较快捷
59  BMK_MASS_TRANSIT_INCITY_SUBWAY_FIRST = 5,//地铁优先
60 }BMKMassTransitIncityPolicy;
61 
63 typedef enum
64 {
65  BMK_MASS_TRANSIT_INTERCITY_TIME_FIRST = 0,//较快捷
66  BMK_MASS_TRANSIT_INTERCITY_START_EARLY = 1,//出发早
67  BMK_MASS_TRANSIT_INTERCITY_PRICE_FIRST = 2,//价格低
68 }BMKMassTransitIntercityPolicy;
69 
71 typedef enum
72 {
73  BMK_MASS_TRANSIT_INTERCITY_TRANS_TRAIN_FIRST = 0,//火车优先
74  BMK_MASS_TRANSIT_INTERCITY_TRANS_PLANE_FIRST = 1,//飞机优先
75  BMK_MASS_TRANSIT_INTERCITY_TRANS_BUS_FIRST = 2,//大巴优先
76 }BMKMassTransitIntercityTransPolicy;
77 
78 
79 typedef enum
80 {
81  BMK_DRIVING_BLK_FIRST = -1, //躲避拥堵(自驾)
82  BMK_DRIVING_TIME_FIRST = 0, //最短时间(自驾)
83  BMK_DRIVING_DIS_FIRST = 1, //最短路程(自驾)
84  BMK_DRIVING_FEE_FIRST, //少走高速(自驾)
85 
86 }BMKDrivingPolicy;
87 
88 typedef enum
89 {
90  BMK_DRIVING_REQUEST_TRAFFICE_TYPE_NONE = 0, //不带路况
91  BMK_DRIVING_REQUEST_TRAFFICE_TYPE_PATH_AND_TRAFFICE = 1, //道路和路况
92 }BMKDrivingRequestTrafficType;
93 
95 @interface BMKTaxiInfo : NSObject
96 
98 @property (nonatomic, strong) NSString* desc;
100 @property (nonatomic) int distance;
102 @property (nonatomic) int duration;
104 @property (nonatomic) CGFloat perKMPrice;
106 @property (nonatomic) CGFloat startPrice;
108 @property (nonatomic) int totalPrice;
109 
110 @end
111 
113 @interface BMKVehicleInfo : NSObject{
114  NSString* _uid;
115  NSString* _title;
116  int _passStationNum;
117  int _totalPrice;
118  int _zonePrice;
119 }
121 @property (nonatomic, strong) NSString* uid;
123 @property (nonatomic, strong) NSString* title;
125 @property (nonatomic) int passStationNum;
127 @property (nonatomic) int totalPrice;
129 @property (nonatomic) int zonePrice;
130 @end
131 
133 @interface BMKTime : NSObject{
134  int _dates;
135  int _hours;
136  int _minutes;
137  int _seconds;
138 
139 }
140 
142 @property (nonatomic) int dates;
144 @property (nonatomic) int hours;
146 @property (nonatomic) int minutes;
148 @property (nonatomic) int seconds;
149 @end
150 
152 @interface BMKRouteNode : NSObject{
153  NSString* _uid;
154  NSString* _title;
155  CLLocationCoordinate2D _location;
156 }
158 @property (nonatomic, strong) NSString* uid;
160 @property (nonatomic, strong) NSString* title;
162 @property (nonatomic) CLLocationCoordinate2D location;
163 @end
166 @end
167 
168 
170 @interface BMKRouteStep : NSObject{
171  int _distance;
172  int _duration;
173  BMKMapPoint* _points;
174  int _pointsCount;
175 }
177 @property (nonatomic) int distance;
179 @property (nonatomic) int duration;
181 @property (nonatomic) BMKMapPoint* points;
183 @property (nonatomic) int pointsCount;
184 
185 @end
186 
189 @end
190 
193  BMKRouteNode* _entrace;
194  BMKRouteNode* _exit;
195  NSString* _instruction;
196  BMKTransitStepType _stepType;
197  BMKVehicleInfo* _vehicleInfo;
198 }
200 @property (nonatomic, strong) BMKRouteNode* entrace;
202 @property (nonatomic, strong) BMKRouteNode* exit;
204 @property (nonatomic, strong) NSString* instruction;
206 @property (nonatomic) BMKTransitStepType stepType;
208 @property (nonatomic, strong) BMKVehicleInfo* vehicleInfo;
209 @end
210 
212 @interface BMKBaseVehicleInfo : NSObject
213 
215 @property (nonatomic, strong) NSString* name;
217 @property (nonatomic, strong) NSString* departureStation;
219 @property (nonatomic, strong) NSString* arriveStation;
221 @property (nonatomic, strong) NSString* departureTime;
223 @property (nonatomic, strong) NSString* arriveTime;
224 
225 @end
226 
229 
231 @property (nonatomic, assign) NSInteger passStationNum;
233 @property (nonatomic, strong) NSString* firstTime;
235 @property (nonatomic, strong) NSString* lastTime;
236 
237 @end
240 
242 @property (nonatomic, assign) CGFloat price;
244 @property (nonatomic, assign) CGFloat discount;
246 @property (nonatomic, strong) NSString* airlines;
248 @property (nonatomic, strong) NSString* bookingUrl;
249 
250 @end
253 
255 @property (nonatomic, assign) CGFloat price;
257 @property (nonatomic, strong) NSString* booking;
258 
259 @end
262 
264 @property (nonatomic, assign) CGFloat price;
266 @property (nonatomic, strong) NSString* bookingUrl;
268 @property (nonatomic, strong) NSString* providerName;
270 @property (nonatomic, strong) NSString* providerUrl;
271 
272 @end
273 
275 @interface BMKMassTransitStep : NSObject
277 @property (nonatomic, assign) BOOL isSubStep;
279 @property (nonatomic, strong) NSArray *steps;
280 
281 @end
282 
285 
287 @property (nonatomic, assign) CLLocationCoordinate2D entraceCoor;
289 @property (nonatomic, assign) CLLocationCoordinate2D exitCoor;
291 @property (nonatomic, strong) NSString* instructions;
293 @property (nonatomic) BMKMassTransitType stepType;
295 @property (nonatomic, strong) BMKBaseVehicleInfo* vehicleInfo;
296 
297 @end
298 
301  int _direction;
302  BMKRouteNode* _entrace;
303  NSString* _entraceInstruction;
304  BMKRouteNode* _exit;
305  NSString* _exitInstruction;
306  NSString* _instruction;
307  int _numTurns;
308 }
310 @property (nonatomic) int direction;
312 @property (nonatomic, strong) BMKRouteNode* entrace;
314 @property (nonatomic, strong) NSString* entraceInstruction;
316 @property (nonatomic, strong) BMKRouteNode* exit;
318 @property (nonatomic, strong) NSString* exitInstruction;
320 @property (nonatomic, strong) NSString* instruction;
322 @property (nonatomic) int numTurns;
324 @property (nonatomic) BOOL hasTrafficsInfo;
326 @property (nonatomic, strong) NSArray* traffics;
327 
328 @end
329 
331 @interface BMKIndoorStepNode : NSObject
332 
334 @property (nonatomic, assign) CLLocationCoordinate2D coordinate;
336 @property (nonatomic, assign) BMKIndoorStepNodeType type;
338 @property (nonatomic, strong) NSString* desc;
339 
340 @end
341 
344 
346 @property (nonatomic, strong) BMKRouteNode* entrace;
348 @property (nonatomic, strong) BMKRouteNode* exit;
350 @property (nonatomic, strong) NSString* instructions;
352 @property (nonatomic, strong) NSString* buildingid;
354 @property (nonatomic, strong) NSString* floorid;
356 @property (nonatomic, strong) NSArray* indoorStepNodes;
357 
358 @end
359 
362  int _direction;
363  BMKRouteNode* _entrace;
364  NSString* _entraceInstruction;
365  BMKRouteNode* _exit;
366  NSString* _exitInstruction;
367  NSString* _instruction;
368 }
370 @property (nonatomic) int direction;
372 @property (nonatomic, strong) BMKRouteNode* entrace;
374 @property (nonatomic, strong) NSString* entraceInstruction;
376 @property (nonatomic, strong) BMKRouteNode* exit;
378 @property (nonatomic, strong) NSString* exitInstruction;
380 @property (nonatomic, strong) NSString* instruction;
381 @end
382 
385 
387 @property (nonatomic) NSInteger direction;
389 @property (nonatomic, strong) BMKRouteNode* entrace;
391 @property (nonatomic, strong) NSString* entraceInstruction;
393 @property (nonatomic, strong) BMKRouteNode* exit;
395 @property (nonatomic, strong) NSString* exitInstruction;
397 @property (nonatomic, strong) NSString* instruction;
398 
399 @end
400 
401 
404 @interface BMKRouteLine : NSObject{
405  int _distance;
406  BMKTime* _duration;
407  BMKRouteNode* _starting;
408  BMKRouteNode* _terminal;
409  NSString* _title;
410  NSArray* _steps;
411 }
413 @property (nonatomic) int distance;
415 @property (nonatomic, strong) BMKTime* duration;
417 @property (nonatomic, strong) BMKRouteNode* starting;
419 @property (nonatomic, strong) BMKRouteNode* terminal;
421 @property (nonatomic, strong) NSString* title;
423 @property (nonatomic, strong) NSArray* steps;
424 @end
425 
428 @end
431 
433 @property (nonatomic, assign) CGFloat price;
434 
435 @end
438 @end
441  bool _isSupportTraffic;//从2.7.0开始,废弃
442  NSArray* _wayPoints;
443 }
445 @property (nonatomic) bool isSupportTraffic;
447 @property (nonatomic, strong) NSArray* wayPoints;
449 @property (nonatomic, assign) NSInteger lightNum;
451 @property (nonatomic, assign) NSInteger congestionMetres;
453 @property (nonatomic, assign) NSInteger taxiFares;
454 
455 @end
456 
459 @end
460 
463 @end
464 
466 @interface BMKSuggestAddrInfo : NSObject
467 {
468  NSArray* _startPoiList;
469  NSArray* _endPoiList;
470  NSArray* _startCityList;
471  NSArray* _endCityList;
472  NSArray* _wayPointsPoiList;
473  NSArray* _wayPointsCityList;
474 }
476 @property (nonatomic, strong) NSArray* startPoiList;
478 @property (nonatomic, strong) NSArray* startCityList;
480 @property (nonatomic, strong) NSArray* endPoiList;
482 @property (nonatomic, strong) NSArray* endCityList;
484 @property (nonatomic, strong) NSArray* wayPointPoiList;
486 @property (nonatomic, strong) NSArray* wayPointCityList;
487 @end
488 
490 @interface BMKBusLineResult : NSObject{
491  NSString* _busCompany;
492  NSString* _busLineName;
493  NSString* _uid;
494  NSString* _startTime;
495  NSString* _endTime;
496  int _isMonTicket;
497  NSArray* _busStations;
498  NSArray* _busSteps;
499 }
501 @property (nonatomic, strong) NSString* busCompany;
503 @property (nonatomic, strong) NSString* busLineName;
505 @property (nonatomic, strong) NSString* busLineDirection;
507 @property (nonatomic, strong) NSString* uid;
509 @property (nonatomic, strong) NSString* startTime;
511 @property (nonatomic, strong) NSString* endTime;
513 @property (nonatomic) int isMonTicket;
515 @property (nonatomic, assign) CGFloat basicPrice;
517 @property (nonatomic, assign) CGFloat totalPrice;
519 @property (nonatomic, strong) NSArray* busStations;
521 @property (nonatomic, strong) NSArray* busSteps;
522 @end
523 
525 @interface BMKWalkingRouteResult : NSObject{
526  BMKTaxiInfo* _taxiInfo;
527  BMKSuggestAddrInfo* _suggestAddrResult;
528  NSArray* _routes;
529 }
531 @property (nonatomic, strong) BMKTaxiInfo* taxiInfo;
533 @property (nonatomic, strong) BMKSuggestAddrInfo* suggestAddrResult;
535 @property (nonatomic, strong) NSArray* routes;
536 
537 @end
538 
540 @interface BMKDrivingRouteResult : NSObject{
541  BMKTaxiInfo* _taxiInfo;
542  BMKSuggestAddrInfo* _suggestAddrResult;
543  NSArray* _routes;
544 }
546 @property (nonatomic, strong) BMKTaxiInfo* taxiInfo;
548 @property (nonatomic, strong) BMKSuggestAddrInfo* suggestAddrResult;
550 @property (nonatomic, strong) NSArray* routes;
551 
552 @end
553 
554 @interface BMKTransitRouteResult : NSObject{
555  BMKTaxiInfo* _taxiInfo;
556  BMKSuggestAddrInfo* _suggestAddrResult;
557  NSArray* _routes;
558 }
560 @property (nonatomic, strong) BMKTaxiInfo* taxiInfo;
562 @property (nonatomic, strong) BMKSuggestAddrInfo* suggestAddrResult;
564 @property (nonatomic, strong) NSArray* routes;
565 
566 @end
567 
569 @interface BMKMassTransitRouteResult : NSObject
570 
572 @property (nonatomic, strong) BMKSuggestAddrInfo* suggestAddrResult;
574 @property (nonatomic, strong) NSArray* routes;
576 @property (nonatomic, assign) NSInteger totalRoutes;
578 @property (nonatomic, strong) BMKTaxiInfo* taxiInfo;
579 
580 @end
581 
583 @interface BMKRidingRouteResult : NSObject
584 
586 @property (nonatomic, strong) BMKSuggestAddrInfo* suggestAddrResult;
588 @property (nonatomic, strong) NSArray* routes;
589 
590 @end
591 
593 @interface BMKIndoorRouteResult : NSObject
594 
596 @property (nonatomic, strong) NSArray* routes;
597 
598 @end
公共交通方案里的交通工具信息类 - 飞机
Definition: BMKRouteSearchType.h:239
此类表示公交线路中的一个路段
Definition: BMKRouteSearchType.h:188
室内路线结点
Definition: BMKRouteSearchType.h:331
int totalPrice
总价(预估) , 单位: 元
Definition: BMKRouteSearchType.h:108
公共交通方案里的交通工具信息类- 公交车、地铁
Definition: BMKRouteSearchType.h:228
此类表示步行路线中的一个路段
Definition: BMKRouteSearchType.h:361
int duration
总耗时,单位: 秒
Definition: BMKRouteSearchType.h:102
路线换乘方案里的交通工具信息类
Definition: BMKRouteSearchType.h:113
此类表示一条公共交通路线
Definition: BMKRouteSearchType.h:430
Definition: BMKRouteSearchType.h:554
此类表示室内路线的一个路段
Definition: BMKRouteSearchType.h:343
此类表示一个室内路线
Definition: BMKRouteSearchType.h:437
此类表示公共交通路线结果
Definition: BMKRouteSearchType.h:569
NSString * desc
路线打车描述信息
Definition: BMKRouteSearchType.h:98
此类表示骑行路线中的一个路段
Definition: BMKRouteSearchType.h:384
此类表示一条驾车路线
Definition: BMKRouteSearchType.h:440
CGFloat startPrice
起步价(白天),单位 元
Definition: BMKRouteSearchType.h:106
CGFloat perKMPrice
每千米单价(白天),单位 元
Definition: BMKRouteSearchType.h:104
此类表示一条骑行路线
Definition: BMKRouteSearchType.h:462
路线搜索地址结果类.当输入的起点或终点有多个地点选择时,或者选定的城市没有此地点,但其它城市有(驾乘或...
Definition: BMKRouteSearchType.h:466
此类表示路线中的一节点,节点包括:路线起终点,公交站点等
Definition: BMKRouteSearchType.h:152
打车信息类
Definition: BMKRouteSearchType.h:95
此类表示公共交通路线中的一个路段
Definition: BMKRouteSearchType.h:284
此类表示公共交通信息查询结果
Definition: BMKRouteSearchType.h:490
公共交通方案里的交通工具信息类 - 火车
Definition: BMKRouteSearchType.h:252
公共交通方案里的交通工具信息类 - 大巴
Definition: BMKRouteSearchType.h:261
此类表示驾车路线中的一个路段
Definition: BMKRouteSearchType.h:300
此类代表一个时间段,每个属性都是一个时间段。
Definition: BMKRouteSearchType.h:133
此类表示室内路线结果
Definition: BMKRouteSearchType.h:593
此类表示公交站点信息
Definition: BMKRouteSearchType.h:165
此类表示步行路线结果
Definition: BMKRouteSearchType.h:525
此类表示一条步行路线
Definition: BMKRouteSearchType.h:458
此类表示公共交通路线中的路段
Definition: BMKRouteSearchType.h:275
int distance
总路程,单位: 米
Definition: BMKRouteSearchType.h:100
此类表示一个换乘路线,换乘路线将根据既定策略调配多种交通工具
Definition: BMKRouteSearchType.h:427
此类表示路线中的一个路段(基类)
Definition: BMKRouteSearchType.h:170
公共交通方案里的交通工具信息基类类
Definition: BMKRouteSearchType.h:212
此类表示公交换乘路线中的一个路段
Definition: BMKRouteSearchType.h:192
此类表示骑行路线结果
Definition: BMKRouteSearchType.h:583
此类表示驾车路线结果
Definition: BMKRouteSearchType.h:540
Definition: BMKRouteSearchType.h:404
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:112