逆地址解释(复杂版)
基本信息
Path: /api/v2/place/reverse
Method: GET
接口描述:
key验证规则 为 对 参数 lat,lng,和salt拼接后进行MD5加密取32位小写,其中salt为固定值:4k1youU38QiFXhTm
例如
lat=-42.7002261
lng=147.2517281
则key = md5(-42.7002261147.25172814k1youU38QiFXhTm)=09a2ed71de39c037b55d44e81d801d2b
所以完整请求链接为:
https://openapi-map.tantu.com/api/v2/place/reverse?lat=-42.7002261&lng=147.2517281&key=09a2ed71de39c037b55d44e81d801d2b
本api参考开源项目nominatim,详细解释可参考官方文档
https://github.com/openstreetmap/Nominatim/blob/master/docs/api/Reverse.md
服务源入口地址:
10.2.251.99:17070
请求参数
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| lat | 是 | 44.50155 | 纬度 |
| lng | 是 | 11.33989 | 经度 |
| key | 是 | 09a2ed71de39c037b55d44e81d801d2b | key为 对 参数 lat,lng,和salt拼接后进行MD5加密取32位小写,其中salt为固定值:4k1youU38QiFXhTm 示例: lat=-42.7002261 lng=147.2517281 key=md5(-42.7002261147.25172814k1youU38QiFXhTm)=09a2ed71de39c037b55d44e81d801d2b |
| format | 否 | jsonv2 | 输出格式,默认:jsonv2。 format=[xml |
| addressdetails | 否 | 1 | 是否包含拆分的地址详情信息,默认:1,addressdetails=[0 |
返回数据
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| place_id | string | 非必须 | |||
| licence | string | 非必须 | |||
| osm_type | string | 非必须 | |||
| osm_id | string | 非必须 | |||
| lat | string | 非必须 | |||
| lon | string | 非必须 | |||
| place_rank | string | 非必须 | |||
| category | string | 非必须 | |||
| type | string | 非必须 | |||
| importance | string | 非必须 | |||
| addresstype | string | 非必须 | |||
| display_name | string | 非必须 | |||
| name | string | 非必须 | |||
| address | object | 非必须 | |||
| ├─ road | string | 非必须 | |||
| ├─ village | string | 非必须 | |||
| ├─ state_district | string | 非必须 | |||
| ├─ state | string | 非必须 | |||
| ├─ postcode | string | 非必须 | |||
| ├─ country | string | 非必须 | |||
| ├─ country_code | string | 非必须 | |||
| boundingbox | string [] | 非必须 | item 类型: string | ||
| ├─ | 非必须 |
粤公网安备 44010602000444号