信息透出
当前行政区域信息请求(只返回结果)#
MapAuto启动后,系统/第三方请求查看当前行政区域信息,接收到请求后,发送一次【当前行政区域信息】。
参数说明
参数 | 描述 | 是否必填 | 格式/示例 |
---|---|---|---|
Action | 表示MapAuto接收/发送广播 | 是 | com.baidu.naviauto.action.recv |
CMD_TYPE | 协议的唯一ID | 是 | 10021 |
请求示例
Intent intent = new Intent();
intent.setAction("com.baidu.naviauto.action.recv");
intent.putExtra("CMD_TYPE", 10021);
sendBroadcast(intent);
返回结果参数说明
参数 | 描述 | 格式/示例 |
---|---|---|
Action | 表示MapAuto接收/发送广播 | com.baidu.naviauto.action.send |
CMD_TYPE | 协议的唯一ID | 10022 |
PROVINCE_NAME | 所在省名称 | String |
CITY_NAME | 所在市名称 | String |
当前行政区域信息透出(1分钟查询一次)#
该接口可用于实时透出行政区域信息,当行政区域发生变化时,MapAuto会及时通知系统。
参数说明
参数 | 描述 | 格式/示例 |
---|---|---|
Action | 表示MapAuto接收/发送广播 | com.baidu.naviauto.action.send |
CMD_TYPE | 协议的唯一ID | 10022 |
PRVINCE_NAME | 所在省名称 | String |
CITY_NAME | 所在市名称 | String |
地图信息通知#
MapAuto启动时,主动将软件相关信息(版本号/渠道号)发送给系统/第三方。
传出参数说明
参数 | 描述 | 格式/示例 |
---|---|---|
Action | 表示MapAuto接收/发送广播 | com.baidu.naviauto.action.send |
CMD_TYPE | 协议的唯一ID | 10023 |
VERSION_NUM | 版本号 | String |
CHANNEL_NUM | 渠道号 | String |