欢迎您!

逆地理编码(经纬度转结构化地址)

接口标识: geocoderegeo 价格: 0.0001 元/次 VIP免费
接口简介
逆地理编码API提供将经纬度坐标转换为结构化地址的能力。输入经纬度坐标,返回对应的详细地址信息及完整的行政区划数据,包括省份、城市、区县、乡镇街道、门牌、区域编码等。适用于位置打卡、轨迹回放、LBS应用等场景。
详细介绍
接口地址: https://www.phpwc.cn/api/geocoderegeo
请求方式: POST
业务请求参数
参数名类型必填默认值说明
location string 必填 113.782914,36.090589 经纬度坐标,格式:经度,纬度(如:116.481488,39.990464),坐标系由 coordsys 参数决定
coordsys string 选填 GCJ02 输入坐标系,可选值:WGS84(GPS)、GCJ02(高德/腾讯/谷歌中国)、BD09(百度坐标系),默认 GCJ02
响应参数
字段名类型说明
codeint状态码,0=成功
descstring状态描述
data− object 业务数据(成功时返回)
status string 返回状态,1:成功;0:失败
info string 返回的状态信息,成功时返回 ok,失败时返回错误原因
formatted_address string 完整地址描述
address_component− object 地址元素详情
country string 国家
province string 省份
city string 城市
citycode string 城市编码
district string 区县
adcode string 区域编码
township string 乡镇
towncode string 乡镇编码
street string 街道
number string 门牌
request_idstring请求追踪ID
JSON 示例:
调用成功:
{
  "code": 0,
  "desc": "success",
  "data": { ... },
  "request_id": "abc123..."
}
调用失败:
{
  "code": 999,
  "desc": "错误描述",
  "request_id": "abc123..."
}
请先 登录 后使用在线测试

© 网程科技(林州网程科技有限公司)   |  豫ICP备2025120409号-2   |  豫B2-20230220   |  豫公网安备 41058102000262号