{"version":"0.1.0","code":"0000","result":true,"message":"处理成功","errdetail":"","timestamp":1671516323973,"data":{"id":71711968,"title":"5.3.5.3 限行功能","slug":"xfz4m9","format":"lake","bookId":26046811,"body":null,"body_draft":null,"body_html":"
注:图中红色框部分的内容由下边数据中获取tipType,根据tipType进行设定
com.autonavi.gbl.common.path.drive.model.CloudShowInfo.vecRestrictCloudControl
com.autonavi.gbl.common.path.drive.model.RestrictCloudControl.tipsControl
com.autonavi.gbl.common.path.drive.model.TipsCloudControl.tipType
boolean com.autonavi.gbl.route.RouteService.control (@RouteControlKey.RouteControlKey1 int key, String Value)
long com.autonavi.gbl.route.RouteService.requestRoute(RouteOption routeOption)
void com.autonavi.gbl.route.RouteService.setElecInfoConfig (ElecInfoConfig elecConfig)
RestrictionInfo com.autonavi.gbl.common.path.option.PathInfo.getRestrictionInfo()
ElecInfoConfig详细参数见【电车算路参数设置】
RouteOption详细参数见【基础算路】
说明:函数详情,请复制函数名称到在线API搜索
RouteService mRouteService = (RouteService)ServiceMgr.getServiceMgrInstance().getBLService(SingleServiceID.RouteSingleServiceID);\n...\nRouteOption routeOption = RouteOption.create();\n...\n//设置车牌号\nmRouteService.control(RouteControlKey.RouteControlKeyVehicleID, "京A00001" );\n//设置eta请求的躲避车辆限行,0表示关闭eta限行请求,1 表示打开eta限行请求\nmRouteService.control(RouteControlKey.RouteControlKeyETARestriction, "1" );\n// 设置车辆类型:0客车,1货车, 2电动客车,3电动货车,4插电式混动客车,5插电式混动货车\nmRouteService.control(RouteControlKey.RouteControlKeyVehicleType, "2");\n//设置其它算路参数\n...\n//如果是电动车,设置电动车相关参数\nElecInfoConfig elecConfig;\nmRouteService.setElecInfoConfig(elecConfig)\nmRouteService.requestRoute(routeOption);
//算路后选当前路线\nPathInfo pathInfo;\nRestrictionInfo restrictionInfo = pathInfo.getRestrictionInfo();\n//限行区域数据Aos请求获取,详见:获取限行数据\n...\nBLAosService::sendReqReStrictedArea(GReStrictedAreaRequestParam pAosRequest, ICallBackReStrictedArea pAosCallbackRef)\n\n//限行区域绘制,详见:限行区域图层绘制\nBizAreaControl.updateRouteRestrict(BizRouteRestrictInfo restrictInfo)
tiptype | 类别 |
1 | 建议设置车牌 |
2 | 建议开启限行 |
3 | 已避开限行区域 |
4 | 起点在限行区域内,未避开限行 |
5 | 终点在限行区域内,未避开限行 |
6 | 途经点在限行区域内,未避开限行 |
7 | 途经限行区域,未避开限行 |
8 | 避开即将生效的限行,用户不能走完全程限行生效 |
9 | 已打开限行,限行即将失效,可以正常通过 |
10 | 途经区域XX时间限行即将结束,当前未避开限行 |
11 | 途经区域XX时间限行即将结束,当前已经避开限行 |
12 | 常走路线限行 |
21 | 起点所在道路上有避不开的封路事件 |
22 | 途经点所在道路上有避不开的封路事件 |
23 | 终点所在道路上有避不开的封路事件 |
24 | 非起点/途经点/终点所在道路上有避不开的封路事件 |
25 | 可以避开的封路事件,已避开 |
26 | 路线干预 |
27 | 终点干预 |
28 | 常走路线封路 |
41 | 已经避开的拥堵信息 |
61 | 路线有禁行无法避开 |
62 | 货车限高限重已避开 |
65 | 常走路线禁行 |
63 | 货车限行(仅货车生效) |
64 | 货车限行(仅货车生效) |
201 | 网络不畅,无法避开拥堵(限行开关关闭) |
202 | 网络不畅,无法避开拥堵、限行(限行开关打开) |
203 | 无网状态下的路线规划 |
204 | 有网状态下的路线规划 |
206 | ETC对账助手提示 |
207 | 武汉疫情出行提示 |
29 | 疫情检查站 |
30 | 道路解封提醒 |
81 | 高速路段节假日免费 |
84 | 今日不营业-无时间 |
85 | 今日不营业-有时间 |
83 | 还有一小时中途休息/打烊 |
82 | 店铺已打烊 |
205 | 长途规划提示用户支付宝可以办理ETC |
89 | 路线规划的小路和窄路提示 |
90 | 外地车进杭证提示 |
10001 | 暂时关闭
|
10004 | 开放时间调整
|
10006 | 门票售罄
|
10010 | 路况事件 |
20001 | 第三方终点 |
208 | 货车轴数计费 |