OpenSDKv5.7.2
BNRoutePlanManagerProtocol.h
浏览该文件的文档.
1//
2// BNRoutePlanManagerProtocol.h
3// baiduNaviSDK
4//
5// Created by Baidu on 11/10/13.
6// Copyright (c) 2013 baidu. All rights reserved.
7//
8
9#ifndef baiduNaviSDK_BNRoutePlanManagerProtocol_h
10#define baiduNaviSDK_BNRoutePlanManagerProtocol_h
11
12#import "BNRoutePlanModel.h"
13
14// 导航算路类型 (区分驾车、货车)
15extern NSString* BNaviTripTypeKey;
16
17// 额外的算路参数
18extern NSString* BNaviRoutePlanAssignKey;
19
20// 导航算路未来时间算路参数(未来出行开始时间)
21extern NSString* BNaviTripeBeginTimeKey;
26@class BNaviRoutePlanNode;
28
29extern NSString* const BNDriveRouteDataKey;
30
31
34
35@required
36
51- (void)startNaviRoutePlan:(BNRoutePlanMode)eMode
52 naviNodes:(NSArray*)naviNodes
53 time:(BNaviCalcRouteTime*)naviTime
54 delegete:(id<BNNaviRoutePlanDelegate>)delegate
55 userInfo:(NSDictionary*)userInfo;
56
57
63- (NSInteger)getCurNodeCount;
64
65
73- (BNRoutePlanNode*)getNaviNodeAtIndex:(NSInteger)index;
74
75
81- (void)setNaviNodes:(NSArray*)naviNodes;
82
83
90
95- (NSInteger)GetCurrentSelectRouteIdx;
96
97
100- (BOOL)selectRouteIndex:(NSInteger)routeIndex;
101
102
106- (BOOL)selectRouteIndex:(NSInteger)routeIndex completion:(dispatch_block_t)completion;
107
108
114- (BNRouteDetailInfo*)getCurrentRouteDetailInfo:(int)stRouteIdx;
115
120
121//是否显示多路线
122- (void)showMultiRoute:(BOOL)show;
123
126
128- (void)truckNaviSettingTrafficControl:(BOOL)islimit;
129
131- (void)truckNaviSettingWeightControl:(BOOL)islimit;
132
135
138
139
140@optional
141
142@property (nonatomic, assign) BOOL disableOpenUrl;
143
144@property (nonatomic) NSString *customRoutePlanUrl;
145
146@end
147
148
150@protocol BNNaviRoutePlanDelegate <NSObject>
151
152@optional
153
159- (void)routePlanDidFinished:(NSDictionary*)userInfo;
160
166- (void)searchDidFinished:(NSDictionary*)userInfo;
167
174- (void)routePlanDidFailedWithError:(NSError *)error andUserInfo:(NSDictionary*)userInfo;
175
181-(void)routePlanDidUserCanceled:(NSDictionary*)userInfo;
182
188- (void)updateRoadConditionDidFinished:(NSData *)pbData;
189
195- (void)updateRoadConditionFailed:(NSData *)pbData;
196
197@end
198
199#endif
BNRoutePlanMode
路线计算类型
Definition: BNCommonDef.h:55
NSString * BNaviTripTypeKey
NSString * BNaviTripeBeginTimeKey
NSString *const BNDriveRouteDataKey
NSString * BNaviRoutePlanAssignKey
路线详情信息
路径规划节点
分时段规划,路线的时间
NSArray< BNaviRouteEventItemModel * > * getLeftRoadEventForYaw()
导航偏航回调 偏航前的原因 数组
BOOL driveAreaLimitSwitchIsOn()
货车限行区域 状态
int getCurRoutePlanMode()
获取当前的路线规划方式
int getCurrentPreference()
获取当前用户保存的算路偏好
BOOL weightLimitSwitchIsOn()
道路限重区域 状态
NSInteger getCurNodeCount()
获得当前节点总数
NSInteger GetCurrentSelectRouteIdx()
获取选择的路线索引 return 路线索引