BaiduMap_IOSSDK_v6.6.7_Docs  6.6.7
BMKBusRouteSearchResult.h
浏览该文件的文档.
1 //
2 // BMKBusRouteSearchResult.h
3 // BaiduMapAPI_Search
4 //
5 // Created by 王大川 on 2025/1/14.
6 // Copyright © 2025 Baidu. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "BMKRouteSearchType.h"
11 
13 
15 typedef enum {
25 
27 typedef enum {
32 
33 NS_ASSUME_NONNULL_BEGIN
34 
36 @interface BMKBusRouteResult : NSObject
37 
39 @property (nonatomic, assign) BMKBusRouteType resultType;
40 
42 @property (nonatomic, assign) NSInteger total;
43 
45 @property (nonatomic, strong) BMKBusRouteNode *origin;
46 
48 @property (nonatomic, strong) BMKBusRouteNode *destination;
49 
51 @property (nonatomic, strong) NSArray<BMKBusRouteLine *> *routes;
52 
54 @property (nonatomic, strong) BMKTaxiInfo *taxiInfo;
55 
57 @property (nonatomic, assign) BOOL isBetterForWalk;
58 @end
59 
62 
64 @property (nonatomic, copy) NSString *cityName;
65 
67 @property (nonatomic, copy) NSString *cityId;
68 
70 @property (nonatomic, strong) NSArray<BMKBusRouteStationInfo *> *stationList;
71 
72 @end
73 
74 
77 
80 @property (nonatomic, assign) BOOL isFuzzy;
82 @property (nonatomic, assign) BMKMassTransitType stationType;
83 
84 @end
85 
86 @interface BMKBusRouteLine : NSObject
87 
90 @property (nonatomic, copy) NSString *arriveTime;
93 @property (nonatomic, copy) NSString *departTime;
96 @property (nonatomic, assign) NSInteger distance;
98 @property (nonatomic, assign) NSInteger duration;
99 
101 @property (nonatomic, assign) BMKBusRoutePlanType planType;
105 @property (nonatomic, assign) int planStatus;
107 @property (nonatomic, assign) NSInteger congestionDistance;
109 @property (nonatomic, assign) NSInteger congestionDuration;
111 @property (nonatomic, copy) NSString *congestionText;
113 @property (nonatomic, assign) int price;
116 @property (nonatomic, strong) NSArray<NSArray<BMKBusRouteStep *> *> *steps;
117 
118 @end
119 
120 @interface BMKBusRouteStep : NSObject
121 
125 @property (nonatomic, assign) BMKMassTransitType stepType;
127 @property (nonatomic, copy) NSString *instruction;
130 @property (nonatomic, assign) NSInteger distance;
132 @property (nonatomic, assign) NSInteger duration;
135 @property (nonatomic, copy) NSString *startName;
137 @property (nonatomic, copy) NSString *startAddress;
140 @property (nonatomic, assign) CLLocationCoordinate2D startLocation;
142 @property (nonatomic, copy) NSString *endName;
145 @property (nonatomic, copy) NSString *endAddress;
148 @property (nonatomic, assign) CLLocationCoordinate2D endLocation;
150 @property (nonatomic) BMKMapPoint *points;
152 @property (nonatomic, assign) int pointsCount;
155 @property (nonatomic, assign) NSInteger price;
157 @property (nonatomic, assign) BOOL canRide;
159 @property (nonatomic, assign) int walkType;
161 @property (nonatomic, assign) BMKMassWalkType transType;
163 @property (nonatomic, strong) NSArray<BMKBusTransferStationInfo *> *station;
165 @property (nonatomic, strong) BMKBusTransferVehicleInfo *vehicle;
168 @property (nonatomic, strong) NSArray<NSArray<BMKBusRouteStep *> *> *lowerSteps;
169 
170 @end
171 
173 @interface BMKBusTransferStationInfo : NSObject
175 @property (nonatomic, assign) NSInteger duration;
177 @property (nonatomic, copy) NSString *uid;
179 @property (nonatomic, copy) NSString *name;
181 @property (nonatomic, assign) BOOL underground;
183 @property (nonatomic, assign) CLLocationCoordinate2D location;
184 @end
185 
186 @interface BMKBusTransferVehicleInfo : NSObject
188 @property (nonatomic, copy) NSString *name;
190 @property (nonatomic, copy) NSString *aliasName;
192 @property (nonatomic, assign) BMKTransitType transitType;
194 @property (nonatomic, assign) BMKMassTransitType massTransitType;
196 @property (nonatomic, copy) NSString *uid;
198 @property (nonatomic, copy) NSString *startUid;
200 @property (nonatomic, copy) NSString *endUid;
202 @property (nonatomic, copy) NSString *directText;
205 @property (nonatomic, strong) BMKRouteNode *entrancePort;
207 @property (nonatomic, strong) BMKRouteNode *exitPort;
210 @property (nonatomic, strong) NSArray<NSString *> *convientDoorInfo;
212 @property (nonatomic, copy) NSString *sideDoorDesc;
214 @property (nonatomic, assign) BMKSubwaySideDoorType sideDoorType;
216 @property (nonatomic, copy) NSString *startName;
218 @property (nonatomic, copy) NSString *endName;
223 @property (nonatomic, copy) NSString *startTime;
228 @property (nonatomic, copy) NSString *endTime;
230 @property (nonatomic, assign) int stopNum;
232 @property (nonatomic, copy) NSString *startCityName;
234 @property (nonatomic, copy) NSString *endCityName;
236 @property (nonatomic, strong) NSArray<BMKMassTransferVehicleStation *> *lineStations;
237 @end
238 
240 
242 @property (nonatomic, copy) NSString *startTime;
243 @end
244 
245 NS_ASSUME_NONNULL_END
BMKBusRouteResult::isBetterForWalk
BOOL isBetterForWalk
是否步行更优
Definition: BMKBusRouteSearchResult.h:57
BMKBusRouteNode
公交路线规划的节点
Definition: BMKBusRouteSearchResult.h:62
BMKMassTransitType
BMKMassTransitType
跨城交通方式枚举
Definition: BMKRouteSearchType.h:48
BMKBusRouteResult::routes
NSArray< BMKBusRouteLine * > * routes
路线方案集合
Definition: BMKBusRouteSearchResult.h:51
BMK_BUS_ROUTE_PLAN_TYPE_RIDE
@ BMK_BUS_ROUTE_PLAN_TYPE_RIDE
步行
Definition: BMKBusRouteSearchResult.h:22
BMKBusRouteResult::destination
BMKBusRouteNode * destination
终点信息
Definition: BMKBusRouteSearchResult.h:48
BMK_BUS_ROUTE_PLAN_TYPE_TRAIN_HIGHSPEED
@ BMK_BUS_ROUTE_PLAN_TYPE_TRAIN_HIGHSPEED
火车
Definition: BMKBusRouteSearchResult.h:17
BMKMassTransferVehicleStation
Definition: BMKBusRouteSearchResult.h:240
BMKBusRouteResult
公交路线规划结果
Definition: BMKBusRouteSearchResult.h:37
BMKBusRouteStep
Definition: BMKBusRouteSearchResult.h:121
BMKMapPoint
地理坐标点,用直角地理坐标表示
Definition: BMKTypes.h:228
BMK_SUBWAY_SIDE_DOOR_TYPE_RIGHT
@ BMK_SUBWAY_SIDE_DOOR_TYPE_RIGHT
左侧
Definition: BMKBusRouteSearchResult.h:29
BMKMassWalkType
BMKMassWalkType
步行类型
Definition: BMKRouteSearchType.h:61
BMK_SUBWAY_SIDE_DOOR_TYPE_LEFT
@ BMK_SUBWAY_SIDE_DOOR_TYPE_LEFT
Definition: BMKBusRouteSearchResult.h:28
BMKBusRouteResult::total
NSInteger total
路线数量
Definition: BMKBusRouteSearchResult.h:42
BMK_BUS_ROUTE_PLAN_TYPE_AIRPLANE
@ BMK_BUS_ROUTE_PLAN_TYPE_AIRPLANE
高铁
Definition: BMKBusRouteSearchResult.h:18
BMK_BUS_ROUTE_PLAN_TYPE_COACH
@ BMK_BUS_ROUTE_PLAN_TYPE_COACH
飞机
Definition: BMKBusRouteSearchResult.h:19
BMKBusRouteResult::resultType
BMKBusRouteType resultType
路线类型,同城 or 跨城
Definition: BMKBusRouteSearchResult.h:39
BMKTransitType
BMKTransitType
同城交通方式枚举
Definition: BMKRouteSearchType.h:29
BMK_BUS_ROUTE_PLAN_TYPE_TAXI
@ BMK_BUS_ROUTE_PLAN_TYPE_TAXI
骑行
Definition: BMKBusRouteSearchResult.h:23
BMKBusTransferVehicleInfo
Definition: BMKBusRouteSearchResult.h:187
BMK_BUS_ROUTE_PLAN_TYPE_TRAIN
@ BMK_BUS_ROUTE_PLAN_TYPE_TRAIN
Definition: BMKBusRouteSearchResult.h:16
BMKBusRouteResult::origin
BMKBusRouteNode * origin
起点信息
Definition: BMKBusRouteSearchResult.h:45
BMKBusTransferStationInfo
公交路线中换乘站点信息
Definition: BMKBusRouteSearchResult.h:174
BMK_SUBWAY_SIDE_DOOR_TYPE_ALL
@ BMK_SUBWAY_SIDE_DOOR_TYPE_ALL
右侧
Definition: BMKBusRouteSearchResult.h:30
BMK_BUS_ROUTE_PLAN_TYPE_WALK
@ BMK_BUS_ROUTE_PLAN_TYPE_WALK
公交(包含区域一体化)
Definition: BMKBusRouteSearchResult.h:21
BMKBusRouteLine
Definition: BMKBusRouteSearchResult.h:87
BMKBusRoutePlanType
BMKBusRoutePlanType
公交路线方案类型
Definition: BMKBusRouteSearchResult.h:15
BMKTaxiInfo
打车信息类
Definition: BMKRouteSearchType.h:145
BMKBusRouteType
BMKBusRouteType
Definition: BMKRouteSearchType.h:15
BMKRouteSearchType.h
BMKBusRouteResult::taxiInfo
BMKTaxiInfo * taxiInfo
出租车信息,跨城不返回该字段
Definition: BMKBusRouteSearchResult.h:54
BMKBusRouteStationInfo
公交路线规划站点信息
Definition: BMKBusRouteSearchResult.h:77
BMKPlanNode
线路检索节点信息,一个路线检索节点可以通过经纬度坐标或城市名加地名确定
Definition: BMKTypes.h:360
BMK_BUS_ROUTE_PLAN_TYPE_BUS
@ BMK_BUS_ROUTE_PLAN_TYPE_BUS
大巴
Definition: BMKBusRouteSearchResult.h:20
BMKSubwaySideDoorType
BMKSubwaySideDoorType
地铁线路开门方向类型
Definition: BMKBusRouteSearchResult.h:27
BMKRouteNode
此类表示路线中的一节点,节点包括:路线起终点,公交站点等
Definition: BMKRouteSearchType.h:200