高德地图SDK(导航) V10.0.600
Loading...
Searching...
No Matches
AMapNaviDriveManager(Private) Category Reference

#import <AMapNaviDriveManager.h>

Instance Methods

(BOOL) - setExtenalCloudControl:
 私有实例接口,外部禁止调用. since 7.8.0
 
(BOOL) - getRestrictareaInfoInRoute:callback:
 获取限行数据接口. 注意:当前接口为付费接口,使用当前接口需要 官网联系https://lbs.amap.com/ 商务 since 9.0.1
 

Class Methods

(BOOL) + setCustomCloudControlEnable:
 私有静态方法,外部禁止调用. since 7.8.0
 

Method Documentation

◆ getRestrictareaInfoInRoute:callback:

- (BOOL) getRestrictareaInfoInRoute: (AMapNaviRoute *)  route
callback: (nonnull void(^)(BOOL responseSuccess, NSString *responseData, NSString *errorDesc))  callback 

获取限行数据接口. 注意:当前接口为付费接口,使用当前接口需要 官网联系https://lbs.amap.com/ 商务 since 9.0.1

Parameters
callback获取限行数据的回调. success 代表是否获取限行数据成功,获取限行数据成功时,responseData 不为空;获取限行数据失败时,errorDesc 不为空.
  1. success 为true response成功时返回结构体: { "code": 1, -—code的value 为 1 请求限行数据成功 "citynums": 1, "citys": [{ "citycode": 000, "rulenums": 1, "cityname": "XX市", "title": "XXX限行政策", "rules": [{ "ruleid": 1766888, "ring": 0, "effect": 1, "local": 2, "vehicle": 1, "time": "全天限行", "policyname": "二环及以内外地机动车限行", "summary": "二环路及以内道路(不含外侧辅路)", "desc": "2021年11月1日起,外地全部机动车限行", "otherdesc": "", "centerpoint": "116.397451,39.909060", "linepoints": "", "areapoints": ""。 }] }] } code: code的value 为 1 请求限行数据成功, code 为value 非1值,则代表限行数据服务返回失败 areapoints: 1.在同一限行区域存在一个限行多边形时,限行数据为经度和纬度使用逗号(,)隔开,多个经纬度使用分号(;)隔开; example一个多边形数据: |-------------— 多边形1-----------------—| 每一个多边形对应一个polygon lon1,lat1;lon2,lat2;lon3,lat3;lon4,lat4; 2.在同一限行区域存在多个限行多边形时,多个多边形之间的数据使用竖线 (|) 隔开; example3个多边形数据: |-------------— 多边形1-----------------—| |--------— 多边形2--------—| |--------— 多边形3--------—| lon1,lat1;lon2,lat2;lon3,lat3;lon4,lat4| lon5,lat5;lon6,lat6;lon7,lat7| lon8,lat8;lon9,lat9;lon10,lat10 2.success 为false response为空,errorDesc为返回的错误描述
Returns
获取限行条件是否满足;路线上数据不为空,且路线上有限行信息,则返回YES,否则的话则返回NO;不代表获取限行数据成功与否

◆ setCustomCloudControlEnable:

+ (BOOL) setCustomCloudControlEnable: (BOOL)  enable

私有静态方法,外部禁止调用. since 7.8.0

◆ setExtenalCloudControl:

- (BOOL) setExtenalCloudControl: (nullable NSString *)  cloudControlString

私有实例接口,外部禁止调用. since 7.8.0


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