百度导航SDK for iOS类参考
 All Classes Functions Properties
BNNaviMessageInfo.h
1 //
2 // BNNaviMessageInfo.h
3 // NaviSDKDemo
4 //
5 // Created by linbiao on 2018/12/25.
6 // Copyright © 2018年 李择一. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "BNCommonDef.h"
11 
17 @interface BNNaviMsgBase : NSObject
18 
19 @property(nonatomic,assign)BNaviMessage_Type_Enum eMsgType; // 消息类型 - navigation message type
20 
21 @end
22 
23 
30 
31 @property(nonatomic,assign)BNaviMessage_Action_Enum eAction; // 动作类型 - action type
32 @property(nonatomic,assign)NSInteger remainDist; // 剩余距离 - remain distance
33 @property(nonatomic,assign)NSInteger remainTime; // 剩余时间 - remain time
34 
35 @end
36 
37 
44 @property(nonatomic,assign)BNaviMessage_Action_Enum eAction; // 动作类型 - action type
45 @property(nonatomic,copy)NSString* nextRoadName; // 下一路口名字 - next road name
46 @property(nonatomic,copy)NSString* turnIconName; // 转向标图片名称 - name for lane change information indicating diagram
47 @property(nonatomic,assign)NSInteger totalDist; // 该段路总长度,单位:米 - total length of the route, in meter
48 @property(nonatomic,assign)NSInteger remainDist; // 距离下一路口剩余长度,单位:米 - remain distance to the next road, in meter
49 @property(nonatomic,assign)NSInteger remainTime; // 距离下一路况大概时间,单位:秒 - remain time to the next road, in second
50 @property(nonatomic,assign)BOOL isStraight; //是否处于顺行模式
51 @property(nonatomic, assign)BOOL bStraightIcon; //区分下一个路口是添加沿 还是进入
52 //下一转向
53 @property (nonatomic, assign) BNaviManeuver_Kind_Enum nextTurnKind;
54 //当前转向
55 @property (nonatomic, assign) BNaviManeuver_Kind_Enum curTurnKind;
56 //下一个转弯到当前转弯的距离
57 @property (nonatomic, assign) NSInteger distCur2NextGP;
58 //下一个转弯是否为高速
59 @property (nonatomic, assign) BOOL bHighwayExCur2NextGP;
60 //当前路名,顺行模式显示当前路名
61 @property (nonatomic, strong) NSString* curRoadName;
62 @property(nonatomic,assign)NSInteger GPAddDist; // 机动点距离,用于判断前后是否相同机动点
63 
64 @end
65 
66 
73 
74 @property(nonatomic,assign)BNaviStatus_Type_Enum eNaviStatusType; // 导航状态类型 - message type of navigation status
75 @property(nonatomic,assign)NSInteger eNaviSightType; // 新增的导航状态类型
76 
77 @end
78 
79 
86 @property(nonatomic,assign)BNaviMessage_Action_Enum eAction; // 动作类型 - Action type
87 @property(nonatomic,copy)NSString* bgImageId; // 背景图片id - ID for background image
88 @property(nonatomic,copy)NSString* iconId; // icon图片id - icon id
89 @property(nonatomic,retain)UIImage* bgImage; // 背景图片,下载了资源后才有,否则为nil - Need to download the corresponding data, otherwise, it will be nil.
90 @property(nonatomic,assign)NSInteger totalDist; // 总距离,单位:米 - total length, in meter
91 @property(nonatomic,assign)NSInteger remainDist; // 剩余距离,单位:米 - remain distance, in meter
92 @property(nonatomic,assign)NSInteger remainTime; // 剩余时间,单位:秒, remain time, in second
93 @property(nonatomic,copy)NSString * nextRoadName; // 下一路口名字, next road name
94 @property(nonatomic,assign)BNaviRasterExpandMap_Type_Enum eRasterType;// 路口放大图类型, type of enlargement
95 @property (nonatomic, assign) int gridMapKind; //放大图分类,用于统计,详见RG_Grid_Kind_Enum类型
96 @property (nonatomic, copy) NSString *statParam; //诱导统计字段
97 @property(nonatomic,copy)NSString * straightIcon; // 不为空就是直行路口
98 @property (nonatomic, assign)NSInteger addDist; //积算距离
99 
100 @end
101 
102 
109 
110 @property(nonatomic,copy)NSString* curRoadName; // 当前路名, current road name
111 
112 @end
113 
114 
121 
122 @property(nonatomic,assign)NSInteger remainTrafficights; // 离目的地剩余红绿灯
123 @property(nonatomic,assign)NSInteger viaRemainTrafficights; // 离下个途经点剩余红绿灯
124 
125 @end
126 
127 
134 
135 @property(nonatomic,assign)BNaviGPS_Change_Enum eGpsChangeType; // 状态变化 - change type for gps
136 
137 @end
138 
139 
146 
147 @property(nonatomic,assign)BNaviMessage_Action_Enum eAction; // 动作类型,BNaviMainSlave 消息只有show和hide,没有update - action type, only support SHOW, HIDE, not support UPDATE
148 
149 @end
150 
151 
158 
159 @property(nonatomic,assign)BNaviMessage_Action_Enum eAction; // 动作类型 - action type
160 @property(nonatomic,assign)NSInteger totalDist; // 总距离,单位:米 - total distance, in meter
161 @property(nonatomic,assign)NSInteger remainDist; // 剩余距离,单位:米 - remain distance, in meter
162 @property(nonatomic,assign)NSInteger remainTime; // 剩余时间,单位:秒 - remain time, in second
163 @property(nonatomic,assign)double carRotAngle; // 车标旋转角度 - rotation angle for car
164 @property(nonatomic,assign)NSInteger carPosX; // 车标位置X - X-position for car
165 @property(nonatomic,assign)NSInteger carPosY; // 车标位置Y - Y-position for car
166 @property(nonatomic,copy)NSString* outRoadName; // 驶出道路名 - the next road name
167 @property(nonatomic,copy)NSString* straightIcon; // 直行图标
168 @property(nonatomic,assign)NSInteger imageWidth; // 图片宽度,单位:像素 - width of image, in pixel
169 @property(nonatomic,assign)NSInteger imageHeight; // 图片高度,单位:像素 - height of image, in pixel
170 @property(nonatomic,retain)UIImage* juncViewImage; // 图片 - image of vector diagram enlargement
171 
172 @end
173 
174 
179 
180 @property (nonatomic,assign) BNaviMessage_Action_Enum eAction;// 动作类型 - action type
181 @property (nonatomic,assign) NSUInteger exitRemainDist; // 高速出口剩余距离
182 @property (nonatomic,retain) NSString *exitHighwayDirectName; // 离开高速的方向名
183 @property (nonatomic,retain) NSString *exitHightwayNextRoadName;//离开高速进入的道路名
184 @property (nonatomic,retain) NSString *exitHighwayID; // 离开高速的编号
185 @property (nonatomic,assign) NSUInteger tollGateTotalDist; // 最近的收费站的剩余距离
186 @property (nonatomic,copy) NSString *tollGateName; // 最近的收费站名称
187 @property (nonatomic,assign) NSUInteger saRemainDist; // 最近的服务区剩余距离
188 @property (nonatomic,retain) NSString *highwaySAName; // 最近的服务区名称
189 @property (nonatomic,assign) NSUInteger nextSARemainDist; // 第二近的服务区剩余距离
190 @property (nonatomic,retain) NSString *nextHighwaySAName; // 第二近的服务区名称
191 @property (nonatomic,retain) NSString *curHighwayRoadName; // 当前高速路名
192 @property (nonatomic,assign) BOOL isLessGPMin; // 是否在距下一机动点3km以内,3km以内退出高速模式
193 @property (nonatomic, assign) BNaviManeuver_Kind_Enum exitHightwayTurnKind; //离开高速的转弯类型
194 
195 @end
196 
197 
202 
203 @property (nonatomic,assign) BNaviMessage_Action_Enum eAction; // 动作类型 - action type
204 @property (nonatomic,copy) NSString *highwayRoadName; // 进入高速后路名
205 @property (nonatomic,assign) NSUInteger startDist; // 进入高速总距离
206 @property (nonatomic,assign) NSUInteger remainDist; // 进入高速后剩余距离
207 
208 @end
209 
210 
215 
216 @property (nonatomic,assign) BNaviMessage_Action_Enum eAction; // 动作类型 - action type
217 @property (nonatomic,copy) NSString *directionName; // 方向名
218 @property (nonatomic,copy) NSString *exitID; // 出口编号
219 @property (nonatomic,assign) NSUInteger startDist; // 总距离
220 @property (nonatomic,assign) NSUInteger remainDist; // 剩余距离
221 @property (nonatomic,assign) NSUInteger addDist; // 积算距离
222 
223 @end
224 
225 
231 @interface BNaviCarPosition : NSObject
232 
233 @property(nonatomic,assign)double carPosX; // 车标位置:x坐标 wgs84 - X-position in wgs84
234 @property(nonatomic,assign)double carPosY; // 车标位置,y坐标 wgs84 - y-position in wgs84
235 @property(nonatomic,assign)double carRotateAngle; // 车头与正北方向的夹角,单位:度 - angle between the direction of car and the due north, in degree
236 @property(nonatomic,assign)double carSpeed; // 车标速度
237 @end
238 
239 
246 
247 @property(nonatomic,assign)BNaviMapRefresh_Type_Enum eMapRefreshType; // 地图刷新消息, type of message for map refresh
248 
249 @property(nonatomic,retain)BNaviCarPosition* carPosInfo; // 车标位置信息, information for car position
250 
251 @property(nonatomic,retain)NSArray* roadCondition;//路况数组,它的每一个元素是 BNaviRoadConditionItem 类型
252 
253 @end
254 
255 
260 
261 @property(nonatomic,assign) int enType;
262 @property(nonatomic,assign) int viaIndex;
263 
264 @end
265 
266 
271 
272 @property (nonatomic, assign) BNaviMessage_Action_Enum eAction;
273 
274 @end
275 
276 
280 @interface BNKMNaviSpeed : NSObject
281 
282 @property (nonatomic, assign) int speed; // 单位km/h
283 
284 @end
285 
286 
290 @interface BNaviMessageHelper : NSObject
291 
295 + (NSString *)typeNameForManeuverKind:(BNaviManeuver_Kind_Enum)type;
296 
297 @end
Definition: BNNaviMessageInfo.h:72
Definition: BNNaviMessageInfo.h:214
Definition: BNNaviMessageInfo.h:120
Definition: BNNaviMessageInfo.h:201
Definition: BNNaviMessageInfo.h:17
Definition: BNNaviMessageInfo.h:245
Definition: BNNaviMessageInfo.h:178
Definition: BNNaviMessageInfo.h:259
Definition: BNNaviMessageInfo.h:157
Definition: BNNaviMessageInfo.h:145
Definition: BNNaviMessageInfo.h:133
Definition: BNNaviMessageInfo.h:290
Definition: BNNaviMessageInfo.h:85
Definition: BNNaviMessageInfo.h:29
Definition: BNNaviMessageInfo.h:270
Definition: BNNaviMessageInfo.h:280
Definition: BNNaviMessageInfo.h:43
Definition: BNNaviMessageInfo.h:231
Definition: BNNaviMessageInfo.h:108