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

#include <AMapNaviDriveManager+AMLMpid.h>

Instance Methods

(void) - setMpid:
 
(void) - setMpid:vehicleInfo:
 
((deprecated("Abandoned since10.3.0 using clearMpidRestoreOption instead") - __attribute
 
(void) - setMpidRestoreOption:
 
(void) - clearMpidRestoreOption
 
(void) - getMpidWithNaviRoutes:option:andCallback:
 

Properties

BOOL allowReRouteWhenMpidFail
 
id< AMapNaviMpidDelegatempidDelegate
 

Detailed Description

用于定制路线的路线规划(强还原) Route planning for customized routes (strong restoration)

Since
10.0.520

Method Documentation

◆ __attribute

- ((deprecated("Abandoned since10.3.0 using clearMpidRestoreOption instead") __attribute

清空添加的mpid Clear the added mpid 注意:需要在停止导航或者到达终点时,主动清空mpid,否则会影响下次的路线规划结果 Attention: It is necessary to actively clear the mpid when stopping navigation or reaching the destination, otherwise it will affect the next route planning result

◆ clearMpidRestoreOption

- (void) clearMpidRestoreOption

清除当前 MPID 路线还原配置 Clear the current MPID route and restore the configuration 注意:需要在停止导航或者到达终点时,主动清空mpid,否则会影响下次的路线规划结果 Attention: It is necessary to actively clear the mpid when stopping navigation or reaching the destination, otherwise it will affect the next route planning result

◆ getMpidWithNaviRoutes:option:andCallback:

- (void) getMpidWithNaviRoutes: (NSArray< AMapNaviRoute * > *)  routes
option: (nullable AMapNaviMpidOption *)  option
andCallback: (nonnull void(^)(NSError *_Nullable error, NSArray< NSString * > *_Nullable mpids))  callback 

使用SDK规划出的路线和自定义option获取mpid Using SDK to plan routes and customize options to obtain mpid 注意:通过SDK规划的路线AMapNaviRoute,会受车辆类型、车牌号等参数的影响; Attention: The route AMapNaviRoute planned through SDK may be affected by parameters such as vehicle type and license plate number; 通过此接口生成mpid之后,使用mpid时,需要调用方来保证车辆类型等参数的通用性, After generating mpid through this interface, when using mpid, the caller needs to ensure the universality of parameters such as vehicle type, 避免因为车辆等参数差异,导致使用mpid指定路线导航时,实际路线不可通过(限宽、限高、限重、车牌限行等) To avoid situations where the actual route cannot be navigated using mpid due to differences in vehicle parameters (such as width, height, weight, license plate restrictions, etc.)

Parameters
routes导航路线数组 Navigation route array
option自定义option Custom options
callback回调 callback
Since
10.2.0

◆ setMpid:

- (void) setMpid: ((deprecated("Abandoned since10.3.0 using setMpidRestoreOption: Instead. This interface is set to support only trucks for mpid")))  __attribute

设置mpid,需要在导航规划货车路线之前设置(该接口仅会影响货车路线规划) Setting mpid requires setting it before navigation planning for truck routes (this interface only affects truck route planning)

Parameters
mpid定制路线的标识 Identification of customized routes

◆ setMpid:vehicleInfo:

- (void) setMpid: (NSString *)  mpid
vehicleInfo: ((deprecated("Abandoned use setMpidRestoreOption: Instead. This interface sets mpid to only support trucks")))  __attribute 

设置mpid和车辆信息,需要在导航规划路线之前设置(该接口影响的路线规划类型和车辆类型相关) Setting mpid and vehicle information needs to be done before navigation planning the route (this interface affects route planning types and vehicle types)

Parameters
mpid定制路线的标识 Identification of customized routes
vehicleInfo车辆信息 Vehicle Information

◆ setMpidRestoreOption:

- (void) setMpidRestoreOption: (AMapNaviMpidRestoreOption *)  opt

设置 MPID 路线还原参数 Set MPID route restoration parameters

Note
该方法用于在路线规划前配置 MPID 还原参数,支持货车和客车的导航路线规划 This method is used to configure MPID restoration parameters before route planning, supporting navigation route planning for trucks and buses
需在导航规划路线前设置 Need to be set before planning the navigation route
Parameters
opt路线还原配置对象,包含 mpid 标识和还原模式类型(见 AMapNaviMpidRestoreOption) Route restoration configuration object, including mpid identifier and restoration mode type (see AMapNaviMpidRestoreOption)
Since
10.3.0

Property Documentation

◆ allowReRouteWhenMpidFail

- (BOOL) allowReRouteWhenMpidFail
readwritenonatomicassign

mpid还原失败后,是否允许使用传入的起终点等参数重新算路,默认为true After a failed mpid restore, is it allowed to recalculate the path using the parameters passed in, such as the starting and ending points? The default value is true

◆ mpidDelegate

- (id<AMapNaviMpidDelegate>) mpidDelegate
readwritenonatomicweak

mpid的代理 Mpid's proxy


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