{"version":"0.1.0","code":"0000","result":true,"message":"处理成功","errdetail":"","timestamp":1671516344005,"data":{"id":71712113,"title":"5.4.3.13 收费站通道信息","slug":"fq8p8z","format":"lake","bookId":26046811,"body":null,"body_draft":null,"body_html":"

场景图

提前展示收费站的通道信息(哪些支持ETC、哪些不支持),有助于帮助用户提前决策和选择过站通道。

\"image.png\"

时序图

关键参数

public class TollGateLaneParam extends BaseParam {\n    public boolean enable = true; \t// 设置收费站车道线,默认打开\n    public int[] checkDistance; \t// 设置显示收费站车道距离配置 ,不建议调整,单位 米; 通过道路等级配置:\n                                    // checkDistance[0]: RoadClassFreeway 默认 1000\n                                    // checkDistance[1]: RoadClassCitySpeedway 默认 500\n                                    // checkDistance[2]: default  默认 300\n}
public class TollGateInfo {\n    public ArrayList<Integer> laneTypes; // 收费口车道类型\n}
public final class TollLaneType {\n    public static final int TollLaneTypeNULL = 0;\t\t\t/**< 无效值 */\n    public static final int TollLaneTypeNormal = 1;\t\t\t/**< 支持普通收费车道 */\n    public static final int TollLaneTypeETC = 2;\t\t\t/**< 支持ETC收费车道 */\n    public static final int TollLaneTypeAutomatric = 4;\t\t/**< 支持自动发卡车道 */\n    public static final int TollLaneTypeAliPay = 8;\t\t\t/**< 支持支付宝收费车道 */\n    public static final int TollLaneTypeWechatPay = 16;\t\t/**< 支持微信支付车道 */\n    public static final int TollLaneTypeITC = 32;\t\t\t/**< 支持ITC收费车道 */\n}

核心接口

void com.autonavi.gbl.guide.observer.INaviObserver.onShowTollGateLane(TollGateInfo tollGateInfo)

说明:函数详情,请复制函数名称到在线API搜索。

调用示例

INaviObserver naviObserver = new INaviObserver() {\n\t@Override\n    public void onShowTollGateLane(TollGateInfo tollGateInfo) {\n        if (tollGateInfo != null && tollGateInfo.laneTypes.size() > 0){\n           // todo 显示收费车道信息 \n        } else {\n           // todo 隐藏收费车道信息\n        }\t\n    }\n    ...\n};


","body_lake":null,"pub_level":null,"status":"0","updated_at":"2022-04-06 07:03:24","deleted_at":null,"nameSpace":"mnlcaa/v610","browseCount":107,"collectCount":0,"estimateDate":4,"docStatus":0,"permissions":true,"overView":false}}