BaiduMap_IOSSDK_v6.5.9_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
15typedef enum {
16 BMK_BUSLINE = 0,
17 BMK_SUBWAY = 1,
18 BMK_WAKLING = 2
19} BMKTransitStepType;
20
21
23typedef 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
35typedef 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
43typedef 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
52typedef 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
63typedef 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
71typedef 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
78typedef 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
87typedef 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
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;
303@property (nonatomic, copy) NSString *roadName;
304@end
305
306
308@interface BMKIndoorStepNode : NSObject
310@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
312@property (nonatomic, assign) BMKIndoorStepNodeType type;
314@property (nonatomic, copy) NSString *desc;
315@end
316
317
321@property (nonatomic, strong) BMKRouteNode *entrace;
323@property (nonatomic, strong) BMKRouteNode *exit;
325@property (nonatomic, copy) NSString *instructions;
327@property (nonatomic, copy) NSString *buildingid;
329@property (nonatomic, copy) NSString *floorid;
331@property (nonatomic, copy) NSArray <BMKIndoorStepNode *> *indoorStepNodes;
332@end
333
334
338@property (nonatomic, assign) int direction;
340@property (nonatomic, strong) BMKRouteNode *entrace;
342@property (nonatomic, copy) NSString *entraceInstruction;
344@property (nonatomic, strong) BMKRouteNode *exit;
346@property (nonatomic, copy) NSString *exitInstruction;
348@property (nonatomic, copy) NSString *instruction;
349@end
350
351
355@property (nonatomic, assign) NSInteger direction;
357@property (nonatomic, strong) BMKRouteNode *entrace;
359@property (nonatomic, copy) NSString *entraceInstruction;
361@property (nonatomic, strong) BMKRouteNode *exit;
363@property (nonatomic, copy) NSString *exitInstruction;
365@property (nonatomic, copy) NSString *instruction;
367@property (nonatomic, copy) NSString *name;
369@property (nonatomic, copy) NSString *turnType;
371@property (nonatomic, assign) NSInteger restrictionsStatus;
373@property (nonatomic, copy) NSString *restrictionsInfo;
374@end
375
376
379@interface BMKRouteLine : NSObject
381@property (nonatomic, assign) int distance;
383@property (nonatomic, strong) BMKTime *duration;
385@property (nonatomic, strong) BMKRouteNode *starting;
387@property (nonatomic, strong) BMKRouteNode *terminal;
389@property (nonatomic, copy) NSString *title;
391@property (nonatomic, copy) NSArray *steps;
392@end
393
394
397@end
398
399
403@property (nonatomic, assign) CGFloat price;
404@end
405
406
409@end
410
411
415@property (nonatomic, assign) BOOL isSupportTraffic __deprecated_msg("已废弃since 2.7.0");;
417@property (nonatomic, copy) NSArray <BMKPlanNode *> *wayPoints;
419@property (nonatomic, assign) NSInteger lightNum;
421@property (nonatomic, assign) NSInteger congestionMetres;
423@property (nonatomic, assign) NSInteger taxiFares;
425@property (nonatomic, assign) NSInteger toll;
426
427@end
428
431@end
432
435@end
436
438@class BMKCityListInfo;
439@interface BMKSuggestAddrInfo : NSObject
441@property (nonatomic, copy) NSArray <BMKPoiInfo *> *startPoiList;
443@property (nonatomic, copy) NSArray <BMKCityListInfo *> *startCityList;
445@property (nonatomic, copy) NSArray <BMKPoiInfo *> *endPoiList;
447@property (nonatomic, copy) NSArray <BMKCityListInfo *> *endCityList;
449@property (nonatomic, copy) NSArray <NSArray<BMKPoiInfo *> *> *wayPointPoiList;
451@property (nonatomic, copy) NSArray <NSArray<BMKCityListInfo *> *> *wayPointCityList;
452@end
453
454#pragma mark - 城市列表信息类
456@interface BMKCityListInfo : NSObject
458@property (nonatomic, copy) NSString *city;
460@property (nonatomic, assign) NSInteger num;
461
462@end
公共交通方案里的交通工具信息基类类
Definition: BMKRouteSearchType.h:189
此类表示公交站点信息
Definition: BMKRouteSearchType.h:151
此类表示公交线路中的一个路段
Definition: BMKRouteSearchType.h:169
公共交通方案里的交通工具信息类- 公交车、地铁
Definition: BMKRouteSearchType.h:204
城市列表信息类
Definition: BMKRouteSearchType.h:457
公共交通方案里的交通工具信息类 - 大巴
Definition: BMKRouteSearchType.h:236
此类表示一条驾车路线
Definition: BMKRouteSearchType.h:414
BOOL isSupportTraffic __deprecated_msg("已废弃since 2.7.0")
该路线所在区域是否含有交通流量信息,从2.7.0开始,废弃
此类表示驾车路线中的一个路段
Definition: BMKRouteSearchType.h:277
此类表示一个室内路线
Definition: BMKRouteSearchType.h:409
此类表示室内路线的一个路段
Definition: BMKRouteSearchType.h:320
室内路线结点
Definition: BMKRouteSearchType.h:309
此类表示一条公共交通路线
Definition: BMKRouteSearchType.h:402
此类表示公共交通路线中的路段
Definition: BMKRouteSearchType.h:253
此类表示公共交通路线中的一个路段
Definition: BMKRouteSearchType.h:262
公共交通方案里的交通工具信息类 - 飞机
Definition: BMKRouteSearchType.h:215
此类表示一条骑行路线
Definition: BMKRouteSearchType.h:435
此类表示骑行路线中的一个路段
Definition: BMKRouteSearchType.h:354
Definition: BMKRouteSearchType.h:380
此类表示路线中的一节点,节点包括:路线起终点,公交站点等
Definition: BMKRouteSearchType.h:140
此类表示路线中的一个路段(基类)
Definition: BMKRouteSearchType.h:156
Definition: BMKRouteSearchType.h:440
打车信息类
Definition: BMKRouteSearchType.h:95
int distance
总路程,单位: 米
Definition: BMKRouteSearchType.h:98
CGFloat startPrice
起步价(白天),单位 元
Definition: BMKRouteSearchType.h:104
NSString * desc
路线打车描述信息
Definition: BMKRouteSearchType.h:96
int totalPrice
总价(预估) , 单位: 元
Definition: BMKRouteSearchType.h:106
CGFloat perKMPrice
每千米单价(白天),单位 元
Definition: BMKRouteSearchType.h:102
int duration
总耗时,单位: 秒
Definition: BMKRouteSearchType.h:100
此类代表一个时间段,每个属性都是一个时间段。
Definition: BMKRouteSearchType.h:127
公共交通方案里的交通工具信息类 - 火车
Definition: BMKRouteSearchType.h:228
此类表示一个换乘路线,换乘路线将根据既定策略调配多种交通工具
Definition: BMKRouteSearchType.h:397
此类表示公交换乘路线中的一个路段
Definition: BMKRouteSearchType.h:174
路线换乘方案里的交通工具信息类
Definition: BMKRouteSearchType.h:112
此类表示一条步行路线
Definition: BMKRouteSearchType.h:431
此类表示步行路线中的一个路段
Definition: BMKRouteSearchType.h:337
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:187