BNRoutePlanManagerProtocol Protocol Reference
Declared in | BNRoutePlanManagerProtocol.h |
---|
– startNaviRoutePlan:naviNodes:time:delegete:userInfo:
required method
发起算路
- (void)startNaviRoutePlan:(BNRoutePlanMode)eMode naviNodes:(NSArray *)naviNodes time:(BNaviCalcRouteTime *)naviTime delegete:(id<BNNaviRoutePlanDelegate>)delegate userInfo:(NSDictionary *)userInfo
Parameters
eMode |
算路方式,定义见BNRoutePlanMode |
---|---|
naviNodes |
算路节点数组,起点、途经点、终点按顺序排列,节点信息为BNRoutePlanNode结构 |
naviTime |
发起算路时间,用于优化算路结果,可以为nil |
delegate |
算路委托,用于回调 |
userInfo |
用户需要传入的参数 |
Discussion
发起算路
Declared In
BNRoutePlanManagerProtocol.h
– getCurNodeCount
required method
获得当前节点总数
- (NSInteger)getCurNodeCount
Return Value
当前节点总数
Discussion
获得当前节点总数
Declared In
BNRoutePlanManagerProtocol.h
– getNaviNodeAtIndex:
required method
获得第index个节点
- (BNRoutePlanNode *)getNaviNodeAtIndex:(NSInteger)index
Parameters
index |
节点序号 |
---|
Return Value
第index个节点
Discussion
获得第index个节点
Declared In
BNRoutePlanManagerProtocol.h
– setNaviNodes:
required method
设置算路节点
- (void)setNaviNodes:(NSArray *)naviNodes
Parameters
naviNodes |
算路节点 |
---|
Discussion
设置算路节点
Declared In
BNRoutePlanManagerProtocol.h
– getCurRoutePlanMode
required method
获取当前的路线规划方式
- (int)getCurRoutePlanMode
Return Value
当前的路线规划方式
Discussion
获取当前的路线规划方式
Declared In
BNRoutePlanManagerProtocol.h
– GetCurrentSelectRouteIdx
required method
获取选择的路线索引 return 路线索引
- (NSInteger)GetCurrentSelectRouteIdx
Discussion
获取选择的路线索引 return 路线索引
Declared In
BNRoutePlanManagerProtocol.h
– getCurrentRouteDetailInfo:
required method
获取当前规划方式的路线详情信息
param [in] stRouteIdx 路线下标 多路线为选择的路线下标,单路线就传0
- (BNRouteDetailInfo *)getCurrentRouteDetailInfo:(int)stRouteIdx
Return Value
返回路线详情信息
Discussion
获取当前规划方式的路线详情信息
param [in] stRouteIdx 路线下标 多路线为选择的路线下标,单路线就传0
Declared In
BNRoutePlanManagerProtocol.h
– getCurrentPreference
required method
获取当前用户保存的算路偏好
- (int)getCurrentPreference
Discussion
获取当前用户保存的算路偏好
Declared In
BNRoutePlanManagerProtocol.h