9 #ifndef baiduNaviSDK_BNCommonDef_h
10 #define baiduNaviSDK_BNCommonDef_h
12 extern NSString *
const BNLoadingTextKey;
13 extern NSString *
const BNSuccessTextKey;
14 extern NSString *
const BNFailedTextKey;
16 extern NSString *
const kBNaviReCalculateRoutePlaning;
17 extern NSString *
const kBNaviReCalculateRoutePlanSuccess;
18 extern NSString *
const kBNaviReCalculateRoutePlanFailed;
22 BNAVI_ROUTEPLAN_ERROR_INVALIDSTARTENDNODE = 5000,
23 BNAVI_ROUTEPLAN_ERROR_INPUTERROR = 5001,
24 BNAVI_ROUTEPLAN_ERROR_NODESTOONEAR = 5002,
27 BNAVI_ROUTEPLAN_ERROR_SEARCHFAILED =5100,
30 BNAVI_ROUTEPLAN_ERROR_LOCATIONFAILED = 5200,
31 BNAVI_ROUTEPLAN_ERROR_LOCATIONSERVICECLOSED = 5201,
34 BNAVI_ROUTEPLAN_ERROR_NONETWORK = 5030,
35 BNAVI_ROUTEPLAN_ERROR_NETWORKABNORMAL = 5031,
37 BNAVI_ROUTEPLAN_ERROR_ROUTEPLANFAILED = 5050,
38 BNAVI_ROUTEPLAN_ERROR_SETSTARTPOSFAILED = 5051,
39 BNAVI_ROUTEPLAN_ERROR_SETENDPOSFAILED = 5052,
40 BNAVI_ROUTEPLAN_ERROR_WAITAMOMENT = 5054,
41 BNAVI_ROUTEPLAN_ERROR_DATANOTREADY = 5055,
42 BNAVI_ROUTEPLAN_ERROR_ENGINENOTINIT = 5056,
43 BNAVI_ROUTEPLAN_ERROR_LIGHTSEARCHERROR = 5057,
44 BNAVI_ROUTEPLAN_ERROR_UNSUPPORTINTERNATIONAL = 5400,
45 }BNAVI_ROUTEPLAN_ERROR;
53 BNRoutePlanMode_Invalid = 0X00000000 ,
54 BNRoutePlanMode_Recommend = 0X00000001 ,
55 BNRoutePlanMode_NoHeighWay = 0X00000004 ,
56 BNRoutePlanMode_LessToll = 0X00000008 ,
57 BNRoutePlanMode_LessJam = 0X00000010 ,
58 BNRoutePlanMode_SaveTime = 0X00000100 ,
59 BNRoutePlanMode_MainRoad = 0X00000200 ,
78 BNDayNight_CFG_Type_Auto,
79 BNDayNight_CFG_Type_Day,
80 BNDayNight_CFG_Type_Night,
89 BNDayNight_Type_Night,
94 BN_Simple_Guide_Mode_Classic = 0,
95 BN_Simple_Guide_Mode_Concise
96 }BN_Simple_Guide_Mode;
102 BNRoadType_Unable = 0,
103 BNRoadType_MainRoad ,
104 BNRoadType_SideRoad ,
105 BNRoadType_OnBridge ,
106 BNRoadType_UnderBridge ,
107 BNRoadType_OnBridge_MainRoad ,
108 BNRoadType_OnBridge_SideRoad ,
109 BNRoadType_UnderBridge_SideRoad ,
113 typedef enum _BNaviSearch_ResultCode_ENUM {
114 BNaviSearch_ResultCode_Invalid,
115 BNaviSearch_ResultCode_NotReady,
116 BNaviSearch_ResultCode_ParamError,
117 BNaviSearch_ResultCode_DataNotReady,
118 BNaviSearch_ResultCode_Canceled,
119 BNaviSearch_ResultCode_Failed,
120 BNaviSearch_ResultCode_Succeed,
121 BNaviSearch_ResultCode_NetNotReachable,
122 BNaviSearch_ResultCode_Timeout,
123 }BNaviSearch_ResultCode_ENUM;
126 BNCalculateSourceTypeChangePreference = 1000,
127 BNCalculateSourceTypeRefreshRoute,
128 BNCalculateSourceTypeAddViaPoint,
129 BNCalculateSourceTypeDeleteViaPoint,
130 BNCalculateSourceTypeAddCarPark,
131 BNCalculateSourceTypeChangeCarPlateLimit,
132 BNCalculateSourceTypeChangeDestPoint,
133 BNCalculateSourceTypeChangeDestByTeam,
134 BNCalculateSourceTypeRecoverDestPoint,
135 BNCalculateSourceTypeResetEndNode,
136 BNCalculateSourceTypeReCalculateRoute,
137 }BNCalculateSourceType;
140 typedef enum _BNaviManeuver_Kind_Enum
142 BNaviManeuver_Kind_Invalid ,
143 BNaviManeuver_Kind_Front ,
144 BNaviManeuver_Kind_Right_Front ,
145 BNaviManeuver_Kind_Right ,
146 BNaviManeuver_Kind_Right_Back ,
147 BNaviManeuver_Kind_Back ,
148 BNaviManeuver_Kind_Left_Back ,
149 BNaviManeuver_Kind_Left ,
150 BNaviManeuver_Kind_Left_Front ,
151 BNaviManeuver_Kind_Ring ,
152 BNaviManeuver_Kind_RingOut ,
153 BNaviManeuver_Kind_Left_Side ,
154 BNaviManeuver_Kind_Right_Side ,
155 BNaviManeuver_Kind_Left_Side_Main ,
156 BNaviManeuver_Kind_Branch_Left_Main ,
157 BNaviManeuver_Kind_Right_Side_Main ,
158 BNaviManeuver_Kind_Branch_Right_Main,
159 BNaviManeuver_Kind_Center_Main ,
160 BNaviManeuver_Kind_Left_Side_IC ,
161 BNaviManeuver_Kind_Right_Side_IC ,
162 BNaviManeuver_Kind_Branch_Left ,
163 BNaviManeuver_Kind_Branch_Right ,
164 BNaviManeuver_Kind_Branch_Center ,
165 BNaviManeuver_Kind_Start ,
166 BNaviManeuver_Kind_Dest ,
167 BNaviManeuver_Kind_VIA1 ,
168 BNaviManeuver_Kind_VIA2 ,
169 BNaviManeuver_Kind_VIA3 ,
170 BNaviManeuver_Kind_VIA4 ,
171 BNaviManeuver_Kind_InFerry ,
172 BNaviManeuver_Kind_OutFerry ,
173 BNaviManeuver_Kind_TollGate ,
174 BNaviManeuver_Kind_Left_Side_Straight_IC ,
175 BNaviManeuver_Kind_Right_Side_Straight_IC ,
176 BNaviManeuver_Kind_Left_Side_Straight ,
177 BNaviManeuver_Kind_Right_Side_Straight ,
178 BNaviManeuver_Kind_Branch_Left_Straight ,
179 BNaviManeuver_Kind_Branch_Center_Straight ,
180 BNaviManeuver_Kind_Branch_Right_Straight ,
181 BNaviManeuver_Kind_Branch_Left_IC ,
182 BNaviManeuver_Kind_Branch_Center_IC ,
183 BNaviManeuver_Kind_Branch_Right_IC ,
184 BNaviManeuver_Kind_Branch_Left_IC_Straight ,
185 BNaviManeuver_Kind_Branch_Center_IC_Straight ,
186 BNaviManeuver_Kind_Branch_Right_IC_Straight ,
187 BNaviManeuver_Kind_Straight_2Branch_Left_Base ,
188 BNaviManeuver_Kind_Straight_2Branch_Right_Base ,
189 BNaviManeuver_Kind_Straight_3Branch_Left_Base ,
190 BNaviManeuver_Kind_Straight_3Branch_Middle_Base ,
191 BNaviManeuver_Kind_Straight_3Branch_Right_Base ,
192 BNaviManeuver_Kind_Left_2Branch_Left_Base ,
193 BNaviManeuver_Kind_Left_2Branch_Right_Base ,
194 BNaviManeuver_Kind_Left_3Branch_Left_Base ,
195 BNaviManeuver_Kind_Left_3Branch_Middle_Base ,
196 BNaviManeuver_Kind_Left_3Branch_Right_Base ,
197 BNaviManeuver_Kind_Right_2Branch_Left_Base ,
198 BNaviManeuver_Kind_Right_2Branch_Right_Base ,
199 BNaviManeuver_Kind_Right_3Branch_Left_Base ,
200 BNaviManeuver_Kind_Right_3Branch_Middle_Base ,
201 BNaviManeuver_Kind_Right_3Branch_Right_Base,
202 BNaviManeuver_Kind_Left_Front_2Branch_Left_Base,
203 BNaviManeuver_Kind_Left_Front_2Branch_Right_Base,
204 BNaviManeuver_Kind_Right_Front_2Branch_Left_Base,
205 BNaviManeuver_Kind_Right_Front_2Branch_Right_Base,
206 BNaviManeuver_Kind_Back_2Branch_Right_Base,
207 BNaviManeuver_Kind_Back_3Branch_Left_Base,
208 BNaviManeuver_Kind_Back_3Branch_Middle_Base,
209 BNaviManeuver_Kind_Back_3Branch_Right_Base
210 }BNaviManeuver_Kind_Enum;
215 BNaviStatusReady = 2,
216 BNaviStatusViewAll = 3,
227 typedef enum _BNaviStatus_Type_Enum
229 BNaviStatus_Type_Invalid,
230 BNaviStatus_Type_BeginNavi,
231 BNaviStatus_Type_BeginYaw,
232 BNaviStatus_Type_RerouteEnd,
233 BNaviStatus_Type_ReRouteCarFree,
234 BNaviStatus_Type_End1,
235 BNaviStatus_Type_End2,
236 BNaviStatus_type_ExactGuide,
237 BnaviStatus_Type_FakeYawing,
238 }BNaviStatus_Type_Enum;
245 typedef enum _BNaviMessage_Action_Enum
247 BNaviMessage_Action_Invalid,
248 BNaviMessage_Action_Show,
249 BNaviMessage_Action_Update,
250 BNaviMessage_Action_Hide,
251 }BNaviMessage_Action_Enum;
258 typedef enum _BNaviRasterExpandMap_Type_Enum
260 BNaviRasterExpandMap_Type_Normal,
261 BNaviRasterExpandMap_Type_DirectBoard,
262 }BNaviRasterExpandMap_Type_Enum;
269 typedef enum _BNaviMessage_Type_Enum
271 BNaviMessage_Type_Invalid,
272 BNaviMessage_Type_StatusChange,
273 BNaviMessage_Type_SimpleGuideInfo,
274 BNaviMessage_Type_AssistantGuideInfo,
275 BNaviMessage_Type_RasterExpandMap,
276 BNaviMessage_Type_CurrentRoadName,
277 BNaviMessage_Type_RemainInfo,
278 BNaviMessage_Type_RemainTrafficlightsInfo,
279 BNaviMessage_Type_GPSChange,
280 BNaviMessage_Type_MainSlave,
281 BNaviMessage_Type_VectorExpandMap,
282 BNaviMessage_Type_MapRefresh,
283 BNaviMessage_Type_HighWayBoard,
284 BNaviMessage_Type_ColladaBoard,
285 BNaviMessage_Type_OtherRoute,
286 BNaviMessage_Type_SwitchNavi,
287 BNaviMessage_Type_RC_RoadInfo_Change,
288 BNaviMessage_Type_LaneInfo,
289 }BNaviMessage_Type_Enum;
296 typedef enum _BNaviGPS_Change_Enum
298 BNaviGPS_Change_Invalid,
299 BNaviGPS_Change_Connect,
300 BNaviGPS_Change_Disconnect,
301 }BNaviGPS_Change_Enum;
308 typedef enum _BNaviMapRefresh_Type_Enum
310 BNaviMapRefresh_Type_Invalid,
311 BNaviMapRefresh_Type_NaviRoute,
312 BNaviMapRefresh_Type_NaviCar,
313 BNaviMapRefresh_Type_NaviNode,
314 BNaviMapRefresh_Type_NearToCross,
315 BNaviMapRefresh_Type_AwayFromCross,
316 BNaviMapRefresh_Type_RoadConditon,
317 }BNaviMapRefresh_Type_Enum;
321 BN_NaviTypeSimulator = 1,
325 BNVoiceSoundType_Ding,
326 BNVoiceSoundType_DiDiDi,
327 BNVoiceSoundType_DaDaDa,
328 BNVoiceSoundType_DiGu,
329 BNVoiceSoundType_DangDang,