高德地图SDK(导航) V11.2.1501
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相关接口 To receive callback information Need to call the interface addDataMpresentative: id<AMapNaviDriveOptimal RouteDelegate>, And implement AMapNaviDriveOptimal RouteDelegate related interfaces @sine10.0.920

Method Documentation

◆ calculateOptimalRouteOnNavigating

- (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

  • return : 不符合发起算路条件时返回NO。When the conditions for initiating the calculation are not met, return NO

◆ navigationWithOptimalRoute

- (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

◆ setOptimalRouteParam:

- (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

  1. Need to implement the @ selector (driveManager: onNaviOptimalRoute:) interface.
  2. Use GPS navigation

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