|
高德地图SDK(导航) V11.2.1501
|
#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< AMapNaviMpidDelegate > | mpidDelegate |
用于定制路线的路线规划(强还原) Route planning for customized routes (strong restoration)
| - ((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
| - (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
| - (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.)
| routes | 导航路线数组 Navigation route array |
| option | 自定义option Custom options |
| callback | 回调 callback |
| - (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)
| mpid | 定制路线的标识 Identification of customized routes |
| - (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)
| mpid | 定制路线的标识 Identification of customized routes |
| vehicleInfo | 车辆信息 Vehicle Information |
| - (void) setMpidRestoreOption: | (AMapNaviMpidRestoreOption *) | opt |
设置 MPID 路线还原参数 Set MPID route restoration parameters
| opt | 路线还原配置对象,包含 mpid 标识和还原模式类型(见 AMapNaviMpidRestoreOption) Route restoration configuration object, including mpid identifier and restoration mode type (see AMapNaviMpidRestoreOption) |
|
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
|
readwritenonatomicweak |
mpid的代理 Mpid's proxy