通过百度地图的坐标位置,查询周边的违章高发情况
接口地址:http://route.showapi.com/1277-1 (注意:接口支持https,更安全,但稍慢一些,你懂的。请根据自己的情况进行选择。)
支持格式:json
请求方法:HTTP协议,支持GET/POST方法。
二、请求参数/ Request parameter
非文件上传的POST时,enctype=application/x-www-form-urlencoded。
文件上传的POST时,enctype=multipart/form-data。1、系统级参数(所有接入点都需要的参数):
参数名称 类型 示例值 必须 描述 showapi_appid String 100 是 易源应用id showapi_sign String 698d51a19d8a121ce581499d7b701668 是 为了验证用户身份,以及确保参数不被中间人篡改,需要传递调用者的数字签名。 可选,在url后带上appid和secret即可 showapi_timestamp String 20141114142239 否 客户端时间。
格式yyyyMMddHHmmss,如20141114142239
为了在一定程度上防止“重放攻击”,平台只接受在10分钟之内的请求。如果不传或传空串,则系统不再做此字段的检测。showapi_res_gzip String 1或0 否 返回值是否用gzip方式压缩。此值为1时将压缩,其他值不压缩。 ... 2、应用级参数(每个接入点有自己的参数,当前接入点的参数见下表): 展开收起
参数名称 类型 默认值 示例值 必须 描述 lon String 116.404 是 经度 lat String 39.915 是 纬度 round String 否 搜索的半径,单位米,取值范围是500-2000 ...
请求示例:String res=new ShowApiRequest("http://route.showapi.com/1277-1","my_appId","my_appSecret") .addTextPara("lon","116.404") .addTextPara("lat","39.915") .addTextPara("round","") .post(); System.out.println(res);
三、返回参数/ Return parameter
以JSON格式返回结果。
1、系统级参数(所有接入点都会返回的参数): 展开收起
名称 类型 示例值 描述 showapi_res_body String {"city":"昆明","prov":"云南"} 消息体的JSON封装,所有应用级的返回参数将嵌入此对象 。 showapi_res_code int 0 易源返回标志,0为成功,其他为失败。
0成功
-1,系统调用错误
-2,可调用次数或金额为0
-3,读取超时
-4,服务端返回数据解析错误
-5,后端服务器DNS解析错误
-6,服务不存在或未上线
-7, API创建者的网关资源不足
-1000,系统维护
-1002,showapi_appid字段必传
-1003,showapi_sign字段必传
-1004,签名sign验证有误
-1005,showapi_timestamp无效
-1006,app无权限调用接口
-1007,没有订购套餐
-1008,服务商关闭对您的调用权限
-1009,调用频率受限
-1010,找不到您的应用
-1011,子授权app_child_id无效
-1012,子授权已过期或失效
-1013,子授权ip受限
-1014,token权限无效
showapi_res_error String 用户输入有误! 错误信息的展示 showapi_res_id String ce135f6739294c63be0c021b76b6fbff 本次请求id ... 2、应用级参数(系统级输出参数showapi_res_body字段中的json数据结构): 展开收起
名称 类型 示例值 描述 ret_code String 接口是否调用成功,0表示成功,其他值为失败 lon String 违章地点的经度 lat String 违章地点的纬度 addr String 违章地址 wzNum String 违章次数(参考值) act String 违法行为 province String 所在省份 city String 所在地市 county String 违章所在的区县或街道办 level String 中 易违章的等级,分高\中\低三个等级 ...
返回示例:{
"showapi_res_code": 0,
"showapi_res_error": "",
"showapi_res_body": {
"ret_code": "0",
"data": [
{
"lon": "116.4131851",
"level": "高",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区南河沿路口西向东",
"wzNum": "632",
"act": "64%未按尾号限制通行的;34%违反限制通行规定的;1%上道路行驶的机动车未按规定定期进行安全技术检验的;1%机动车违反禁令标志指示的;",
"lat": "39.9168854",
"city": "北京市"
},
{
"lon": "116.4099197",
"level": "高",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东长安街南池子路口西向东",
"wzNum": "275",
"act": "83%机动车违反规定使用专用车道的;17%机动车违规使用专用车道;",
"lat": "39.9145012",
"city": "北京市"
},
{
"lon": "116.412941",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东华门大街",
"wzNum": "25",
"act": "100%违反禁止停车标志指示的;",
"lat": "39.9216232",
"city": "北京市"
},
{
"lon": "116.4093857",
"level": "高",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东华门大街故宫东门路口至望恩桥路口段",
"wzNum": "132",
"act": "68%违反禁止停车标志指示的;17%机动车违反规定临时停车;12%不按规定停车;2%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;1%违反禁令标志指示的;",
"lat": "39.920845",
"city": "北京市"
},
{
"lon": "116.4131851",
"level": "高",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东长安街南河沿路口西东向西",
"wzNum": "1928",
"act": "71%机动车违反规定使用专用车道的;29%机动车违规使用专用车道;",
"lat": "39.9168854",
"city": "北京市"
},
{
"lon": "116.4154663",
"level": "高",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区王府井西街王府井西街北口",
"wzNum": "69",
"act": "74%机动车违反规定临时停车;26%不按规定停车;",
"lat": "39.919384",
"city": "北京市"
},
{
"lon": "116.3976288",
"level": "中",
"county": "西城区",
"province": "北京市",
"addr": "北京市西城区西交民巷西交民巷西口至西交民巷东口段",
"wzNum": "14",
"act": "100%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;",
"lat": "39.908123",
"city": "北京市"
},
{
"lon": "116.4131851",
"level": "高",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区南河沿路口东向西",
"wzNum": "274",
"act": "63%未按尾号限制通行的;35%违反限制通行规定的;1%上道路行驶的机动车未按规定定期进行安全技术检验的;1%机动车违反禁令标志指示的;",
"lat": "39.9168854",
"city": "北京市"
},
{
"lon": "116.4015427",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市西城区西华门大街",
"wzNum": "17",
"act": "80%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;20%不按规定停车;",
"lat": "39.9199371",
"city": "北京市"
},
{
"lon": "116.4134674",
"level": "高",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区正义路南口北向南",
"wzNum": "65",
"act": "56%未按尾号限制通行的;40%违反限制通行规定的;3%上道路行驶的机动车未按规定定期进行安全技术检验的;1%违反禁令标志指示的;",
"lat": "39.9108162",
"city": "北京市"
},
{
"lon": "116.4134674",
"level": "高",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区正义路南口东向西",
"wzNum": "175",
"act": "70%未按尾号限制通行的;29%违反限制通行规定的;1%上道路行驶的机动车未按规定定期进行安全技术检验的;",
"lat": "39.9108162",
"city": "北京市"
},
{
"lon": "116.412941",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东华门大街东口南向北",
"wzNum": "41",
"act": "48%未按照指示交通标线指示行驶的;33%信号路口不按规定行驶;7%机动车不按交通信号灯规定通行的;7%强行右转弯;4%驾驶机动车违反道路交通信号灯通行的;1%通过路口向右转弯遇同车道内有车等候放行信号时,不依次停车等候的;",
"lat": "39.9216232",
"city": "北京市"
},
{
"lon": "116.4072342",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区新大陆西口",
"wzNum": "11",
"act": "100%机动车违反规定停车;",
"lat": "39.909317",
"city": "北京市"
},
{
"lon": "116.3981171",
"level": "高",
"county": "西城区",
"province": "北京市",
"addr": "北京市西城区西长安街南长街路口西西向东",
"wzNum": "262",
"act": "89%机动车违反规定使用专用车道的;11%机动车违规使用专用车道;",
"lat": "39.9138794",
"city": "北京市"
},
{
"lon": "116.4097137",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东长安街广场东侧路北口至南池子大街南口段",
"wzNum": "19",
"act": "100%违反禁止停车标志指示的;",
"lat": "39.9142342",
"city": "北京市"
},
{
"lon": "116.4021072",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区广场西侧路",
"wzNum": "18",
"act": "100%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;",
"lat": "39.9137306",
"city": "北京市"
},
{
"lon": "116.413208",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区南河沿大街",
"wzNum": "16",
"act": "67%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;33%机动车违反规定停车;",
"lat": "39.9173431",
"city": "北京市"
},
{
"lon": "116.4134674",
"level": "高",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区正义路南口西向东",
"wzNum": "331",
"act": "70%未按尾号限制通行的;28%违反限制通行规定的;1%机动车违反禁令标志指示的;1%上道路行驶的机动车未按规定定期进行安全技术检验的;",
"lat": "39.9108162",
"city": "北京市"
},
{
"lon": "116.3976288",
"level": "中",
"county": "西城区",
"province": "北京市",
"addr": "北京市西城区西交民巷(北新华街)东向西",
"wzNum": "18",
"act": "100%机动车违反禁令标志指示的;",
"lat": "39.908123",
"city": "北京市"
},
{
"lon": "116.4134903",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东黄城根南北街亮果厂胡同西口",
"wzNum": "17",
"act": "100%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;",
"lat": "39.9226494",
"city": "北京市"
},
{
"lon": "116.4145508",
"level": "低",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东安门大街望恩桥路口",
"wzNum": "10",
"act": "50%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;50%不按规定停车;",
"lat": "39.922554",
"city": "北京市"
},
{
"lon": "116.4134903",
"level": "低",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东黄城根南北街锡拉胡同西口至韶九胡同西口段",
"wzNum": "8",
"act": "100%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;",
"lat": "39.9226494",
"city": "北京市"
},
{
"lon": "116.3942032",
"level": "中",
"county": "西城区",
"province": "北京市",
"addr": "北京市西城区兵部洼胡同",
"wzNum": "18",
"act": "81%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;19%不按规定停车;",
"lat": "39.9098816",
"city": "北京市"
},
{
"lon": "116.4154663",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东安门大街王府井西街北口",
"wzNum": "22",
"act": "71%机动车违反规定临时停车;29%不按规定停车;",
"lat": "39.919384",
"city": "北京市"
},
{
"lon": "116.4134674",
"level": "低",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区正义路南口西向东。",
"wzNum": "10",
"act": "100%未按尾号限制通行的;",
"lat": "39.9108162",
"city": "北京市"
},
{
"lon": "116.4131851",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东长安街南河沿路口西东向西。",
"wzNum": "13",
"act": "100%机动车违反规定使用专用车道的;",
"lat": "39.9168854",
"city": "北京市"
},
{
"lon": "116.4097137",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区南池子大街南池子大街南口至池子口段",
"wzNum": "23",
"act": "50%机动车违反规定停车;25%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;25%违反禁止停车标志指示的;",
"lat": "39.9142342",
"city": "北京市"
},
{
"lon": "116.4112778",
"level": "高",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区市公安局南门行人过街灯东向西",
"wzNum": "84",
"act": "81%信号路口不按规定行驶;12%机动车不按交通信号灯规定通行的;7%驾驶机动车违反道路交通信号灯通行的;",
"lat": "39.9074478",
"city": "北京市"
},
{
"lon": "116.3981171",
"level": "高",
"county": "西城区",
"province": "北京市",
"addr": "北京市西城区西长安街南长街路口西东向西",
"wzNum": "262",
"act": "86%机动车违反规定使用专用车道的;14%机动车违规使用专用车道;",
"lat": "39.9138794",
"city": "北京市"
},
{
"lon": "116.4134293",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东打磨厂街东打磨厂街西口至前门小学西侧路北口段",
"wzNum": "31",
"act": "57%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;39%不按规定停车;4%机动车违反规定停车;",
"lat": "39.9063301",
"city": "北京市"
},
{
"lon": "116.4134674",
"level": "高",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区正义路南口南向北",
"wzNum": "96",
"act": "66%未按尾号限制通行的;28%违反限制通行规定的;3%上道路行驶的机动车未按规定定期进行安全技术检验的;2%机动车违反禁令标志指示的;1%违反禁令标志指示的;",
"lat": "39.9108162",
"city": "北京市"
},
{
"lon": "116.4145508",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东安门大街",
"wzNum": "13",
"act": "38%不按规定停车;25%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;25%违反禁止停车标志指示的;1%机动车违反规定停车;",
"lat": "39.922554",
"city": "北京市"
},
{
"lon": "116.394371",
"level": "中",
"county": "西城区",
"province": "北京市",
"addr": "北京市西城区石碑胡同",
"wzNum": "18",
"act": "57%不按规定停车;43%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;",
"lat": "39.9123154",
"city": "北京市"
},
{
"lon": "116.4134674",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区地铁路市局南门至正义路南口段",
"wzNum": "12",
"act": "100%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;",
"lat": "39.9108162",
"city": "北京市"
},
{
"lon": "116.4154663",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区王府井西街王府井西街北口至王府井西街南口段",
"wzNum": "39",
"act": "63%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;31%不按规定停车;6%机动车违反规定停车;",
"lat": "39.919384",
"city": "北京市"
},
{
"lon": "116.4131851",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东长安街南池子大街南口至南河沿段",
"wzNum": "16",
"act": "100%未按尾号限制通行的;",
"lat": "39.9168854",
"city": "北京市"
},
{
"lon": "116.406105",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区广场东侧路",
"wzNum": "18",
"act": "50%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;50%机动车违反规定停车;",
"lat": "39.9067001",
"city": "北京市"
},
{
"lon": "116.4131851",
"level": "高",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区南河沿路口南向北",
"wzNum": "136",
"act": "53%未按尾号限制通行的;44%违反限制通行规定的;1%违反禁令标志指示的;1%机动车违反禁令标志指示的;1%上道路行驶的机动车未按规定定期进行安全技术检验的;",
"lat": "39.9168854",
"city": "北京市"
},
{
"lon": "116.4140625",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区王府井大街霞公府街东口至王府井步行街南口段",
"wzNum": "16",
"act": "100%机动车违反规定临时停车;",
"lat": "39.9155579",
"city": "北京市"
},
{
"lon": "116.4134903",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东黄城根南北街御路路口",
"wzNum": "17",
"act": "67%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;33%机动车违反规定停车;",
"lat": "39.9226494",
"city": "北京市"
},
{
"lon": "116.3976288",
"level": "中",
"county": "西城区",
"province": "北京市",
"addr": "北京市西城区西交民巷",
"wzNum": "12",
"act": "40%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;40%机动车违反规定停车;20%违反禁令标志指示;",
"lat": "39.908123",
"city": "北京市"
},
{
"lon": "116.4131546",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区前门东大街正义路路口东向西",
"wzNum": "21",
"act": "50%未按照指示交通标线指示行驶的;50%信号路口不按规定行驶;",
"lat": "39.9071388",
"city": "北京市"
},
{
"lon": "116.4131851",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区南河沿大街望恩桥至南河沿段",
"wzNum": "17",
"act": "50%不按规定停车;31%违反禁止停车标志指示的;19%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;",
"lat": "39.9168854",
"city": "北京市"
},
{
"lon": "116.4134674",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区正义路南口",
"wzNum": "23",
"act": "67%违反限制通行规定的;17%未按尾号限制通行的;8%信号路口不按规定行驶;8%违反禁令标志指示的;",
"lat": "39.9108162",
"city": "北京市"
},
{
"lon": "116.4060287",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区前门东大街前门东站至市局南门段",
"wzNum": "29",
"act": "89%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;11%不按规定停车;",
"lat": "39.9065361",
"city": "北京市"
},
{
"lon": "116.4060287",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区前门东大街前门西站至台基厂南口段",
"wzNum": "40",
"act": "100%机动车违反规定临时停车;",
"lat": "39.9065361",
"city": "北京市"
},
{
"lon": "116.4140625",
"level": "高",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区霞公府街霞公府街西口",
"wzNum": "81",
"act": "99%违反禁止停车标志指示的;1%机动车违反规定临时停车;",
"lat": "39.9155579",
"city": "北京市"
},
{
"lon": "116.4154663",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东安门大街与东皇城根南街交接口至王府井西街北口段",
"wzNum": "18",
"act": "40%违反禁止停车标志指示的;40%不按规定停车;20%机动车违反规定临时停车;",
"lat": "39.919384",
"city": "北京市"
},
{
"lon": "116.4154663",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区东安门大街王府井西街北口至金鱼胡同西口段",
"wzNum": "27",
"act": "60%机动车违反规定停放、临时停车且驾驶人虽在现场拒绝立即驶离,妨碍其它车辆、行人通行的;33%机动车违反规定停车;7%不按规定停车;",
"lat": "39.919384",
"city": "北京市"
},
{
"lon": "116.4131851",
"level": "中",
"county": "东城区",
"province": "北京市",
"addr": "北京市东城区南河沿口",
"wzNum": "17",
"act": "100%未按尾号限制通行的;",
"lat": "39.9168854",
"city": "北京市"
}
],
"msg": "查询成功!"
}
}
易源数据通过打破资源壁垒,搭建起数据资源的基础设施,将接口纳入统一的接口池,把多个异构数据源合并到同一根管线上,以统一的访问和控制方式,对外提供统一格式的数据。
让开发者可以像搭积木一样通过各种API操纵资源。
截至2017年12月,平台已经拥有API接口230个,日调用量2000万,覆盖全网10万+真实消费者,为超过3000+的企业用户提供全域数据服务。
电话: 4009988033
微博: http://www.weibo.com/showapi
邮箱: services@showapi.com
QQ: 3007663665
微信: show_api
企业和程序员可以通过进制数据封装的API或SDK极速接入其他数据资源,同时进制数据提供数据交易等服务。通过进制数据,不仅开发成本极大降低,而且可以获得其他丰富的数据服务:数据交易,数据分析,区块链Token管理等服务。
电话:173-6457-5198
QQ① 群:792473404
客服 QQ:1643296538
微信客服:binstds
扫描二维码添加客服微信
周一至周五 9:00 - 21:00(其中周三为 9:00 - 18:00)
周六 9:00 - 12:00(节假日除外)
进制数据团队
2020.01.01