高德地图SDK(导航) V11.2.0501
Loading...
Searching...
No Matches
AMapNaviDriveManager(OptimalRoute) Category Reference

#include <AMapNaviDriveManager+OptimalRoute.h>

Instance Methods

(void) - setOptimalRouteParam:
 
(BOOL) - calculateOptimalRouteOnNavigating
 
(BOOL) - navigationWithOptimalRoute
 

Detailed Description

要接收回调信息 需要调用接口addDataRepresentative: id<AMapNaviDriveOptimalRouteDelegate>, 并实现AMapNaviDriveOptimalRouteDelegate相关接口 @sine10.0.920

Method Documentation

◆ calculateOptimalRouteOnNavigating

- (BOOL) calculateOptimalRouteOnNavigating

导航中计算更优路线(非GPS导航态无效); 注意条件与setOptimalRouteParam相同

  • return : 不符合发起算路条件时返回NO

◆ navigationWithOptimalRoute

- (BOOL) navigationWithOptimalRoute

使用更优路线导航 : 路线的有效期为20s,在路线返回超过20s后调用此接口返回失败, 需要在收到更优路线后使用此接口 在回调naviWithOptimalRouteError中有具体失败信息

◆ setOptimalRouteParam:

- (void) setOptimalRouteParam: (AMapNaviOptimalRouteParam *)  routeParam

设置更优路线参数, 设置此参数后才能使用更优路线策略 注意:1 设置此参数前需要先设置mpid,车辆类型为货车 2 需要实现 @selector(driveManager:onNaviOptimalRoute:) 接口 3 使用GPS导航


The documentation for this category was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。