https://api.andeer.top/API/latitude_longitude.php
https://api.andeer.top/API/latitude_longitude.php
经纬度查询(百度)
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| lng | string | 是 | 经度 |
| lat | string | 是 | 纬度 |
| 状态码 | 说明 |
|---|---|
| 200 | 请求成功,服务器已成功处理了请求。 |
| 403 | 服务器拒绝请求。这可能是由于缺少必要的认证凭据(如API密钥)或权限不足。 |
| 404 | 请求的资源未找到。请检查您的请求地址是否正确。 |
| 429 | 请求过于频繁。您已超出速率限制,请稍后再试。 |
| 500 | 服务器内部错误。服务器在执行请求时遇到了问题。 |
此处将显示接口返回结果...
<?php
$url = 'https://api.andeer.top/API/latitude_longitude.php';
$params = ['lng' => 'YOUR_VALUE', 'lat' => 'YOUR_VALUE', ];
$url .= '?' . http_build_query($params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>import requests
url = "https://api.andeer.top/API/latitude_longitude.php"
params = {
'lng': 'YOUR_VALUE',
'lat': 'YOUR_VALUE',
}
response = requests.get(url, params=params)
print(response.text)const url = new URL('https://api.andeer.top/API/latitude_longitude.php');
const params = {
'lng': 'YOUR_VALUE',
'lat': 'YOUR_VALUE',
};
Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
fetch(url)
.then(response => response.text())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));{
"success": true,
"code": 200,
"msg": "获取成功",
"data": {
"code": "1",
"message": "Successful.",
"result": "true",
"timestamp": "1766339902185",
"version": "1.0",
"country": "中国",
"countrycode": "CN",
"province": "上海市",
"provinceadcode": "310000",
"city": "上海市",
"cityadcode": "310000",
"tel": "021",
"areacode": "021",
"district": "黄浦区",
"districtadcode": "310101",
"adcode": "310101",
"desc": "上海市,上海市,黄浦区",
"road_list": [
{
"direction": "NorthEast",
"distance": "13",
"latitude": "31.2299",
"level": "5",
"longitude": "121.48",
"name": "广西北路",
"roadid": "021H51F010012800",
"width": "4"
},
{
"direction": "NorthWest",
"distance": "30",
"latitude": "31.2298",
"level": "4",
"longitude": "121.48",
"name": "延安东路辅路",
"roadid": "021H51F0100122461",
"width": "20"
},
{
"direction": "NorthWest",
"distance": "33",
"latitude": "31.2297",
"level": "4",
"longitude": "121.48",
"name": "延安东路",
"roadid": "021H51F0100122392",
"width": "24"
}
],
"cross_list": [
{
"crossid": "021H51F010012137645--021H51F010012800",
"direction": "North",
"distance": "63.0596",
"latitude": "31.229460",
"level": "45000, 45000",
"longitude": "121.480203",
"name": "云南中路--广西北路",
"weight": "120",
"width": "4, 4"
},
{
"crossid": "021H51F0100122392--021H51F010012800",
"direction": "North",
"distance": "63.0596",
"latitude": "31.229460",
"level": "44000, 45000",
"longitude": "121.480203",
"name": "延安东路--广西北路",
"weight": "130",
"width": "24, 4"
},
{
"crossid": "021H51F010012137645--021H51F0100122392",
"direction": "North",
"distance": "63.0596",
"latitude": "31.229460",
"level": "45000, 44000",
"longitude": "121.480203",
"name": "云南中路--延安东路",
"weight": "130",
"width": "4, 24"
}
],
"hn": "600-618号",
"sea_area": {
"adcode": "",
"name": ""
},
"pos": "在东海商业中心商务楼附近, 在广西北路旁边, 靠近延安东路--广西北路路口"
},
"text": {
"copyright": "Aurora 2022.8.14",
"time": "当前时间为:2025-12-22 01:58:22"
}
}