|
高德地图SDK(导航) V11.2.1501
|
#include <AMapNaviDriveManager+OptimalRoute.h>
Instance Methods | |
| (void) | - setOptimalRouteParam: |
| (BOOL) | - calculateOptimalRouteOnNavigating |
| (BOOL) | - navigationWithOptimalRoute |
要接收回调信息 需要调用接口addDataRepresentative: id<AMapNaviDriveOptimalRouteDelegate>, 并实现AMapNaviDriveOptimalRouteDelegate相关接口 To receive callback information Need to call the interface addDataMpresentative: id<AMapNaviDriveOptimal RouteDelegate>, And implement AMapNaviDriveOptimal RouteDelegate related interfaces @sine10.0.920
| - (BOOL) calculateOptimalRouteOnNavigating |
导航中计算更优路线(非GPS导航态无效); Calculate a better route in navigation (invalid in non GPS navigation mode); 注意条件与setOptimalRouteParam相同 Note that the conditions are the same as setOptimal RouteParam
| - (BOOL) navigationWithOptimalRoute |
使用更优路线导航 : 路线的有效期为20s,在路线返回超过20s后调用此接口返回失败, Use better route navigation: the valid period of the route is 20s. After the route returns for more than 20s, calling this interface fails, 需要在收到更优路线后使用此接口 Need to use this interface after receiving a better route 在回调naviWithOptimalRouteError中有具体失败信息 There is specific failure information in the callback naviWithOptimal RouteError
| - (void) setOptimalRouteParam: | (AMapNaviOptimalRouteParam *) | routeParam |
设置更优路线参数, 设置此参数后才能使用更优路线策略 注意:1 设置此参数前需要先设置mpid,车辆类型为货车 2 需要实现 @selector(driveManager:onNaviOptimalRoute:) 接口 3 使用GPS导航 Set better route parameters before using the better route strategy Note: 1. Before setting this parameter, you need to first set mpid, and the vehicle type is a truck