标准地址核验 / 地址解析 / 数据共享接口 · 供市场监管、住建、教育、水电气等单位对接
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 平台签发的接口密钥 |
| address | string | 是 | 待核验的地址文本或标准地址编码 |
curl -X POST http://127.0.0.1:8000/api/open/verify \
-H "Content-Type: application/json" \
-d '{"key":"mk_xxxx","address":"渝水区抱石大道12号3栋2单元801室"}'
{
"ok": true,
"exists": true,
"score": 1.0,
"standard": "渝水区抱石大道12号3栋2单元801室",
"code": "3605020012000120302080 18",
"street": "抱石大道",
"purpose": "住宅",
"community": "北湖社区"
}
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 接口密钥 |
| q | string | 是 | 非标准地址描述,如“抱石大道12号” |
curl "http://127.0.0.1:8000/api/open/parse?key=mk_xxxx&q=抱石大道12号"
curl "http://127.0.0.1:8000/api/public/addr/a1b2c3d4"
{
"short": "a1b2c3d4",
"type": "隐患上报",
"content": "3栋2单元楼道堆放杂物,影响疏散",
"reporter": "辖区居民",
"phone": "13900000000"
}
{ "short": "a1b2c3d4", "reporter": "张三", "phone": "13900000000" }
curl -H "Authorization: Bearer <token>" \ http://127.0.0.1:8000/api/police/scan/a1b2c3d4
http://<host>/s/{short},可用于制牌打印与批量排版。<img src="/qr/a1b2c3d4">