通过经纬度获取地理位置
GET
location/geocode最后修改时间: 2 年前
责任人:
请求参数
Query 参数
location
string
可选
客户端IP转换的经纬度(如果不提交,系统会自动获取)
cache
string
是否获取缓存数据
示例值:
true
示例代码
返回响应
请求成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
状态码
msg
string
信息
data
string | integer | boolean | array | object | number | null
数据
示例
{
"code": 200,
"msg": "数据请求成功!",
"data": {
"status": "1",
"regeocode": {
"addressComponent": {
"city": "河源市",
"province": "广东省",
"adcode": "441602",
"district": "源城区",
"towncode": "441602003000",
"streetNumber": {
"number": "6号",
"location": "114.697924,23.746066",
"direction": "东南",
"distance": "25.4692",
"street": "茶亭街"
},
"country": "中国",
"township": "东埔街道",
"businessAreas": [
[]
],
"building": {
"name": [],
"type": []
},
"neighborhood": {
"name": [],
"type": []
},
"citycode": "0762"
},
"formatted_address": "广东省河源市源城区东埔街道茶亭街6号河源市第一小学"
},
"info": "OK",
"infocode": "10000"
}
}
最后修改时间: 2 年前