高德地图/geocode/regeo中逆地理编码获取到的adcode无数据
在调用高德地图逆地理编码/geocode/regeo+/weather/weatherInfo天气接口时获取到adcode数据为空,如下。经度在前,纬度在后,经纬度间以“,”分割,经纬度小数点后不要超过 6 位。
问题
在调用高德地图逆地理编码/geocode/regeo+/weather/weatherInfo天气接口时获取到adcode数据为空,如下
{
“status”: “1”,
“info”: “OK”,
“infocode”: “10000”,
“regeocode”: {
“formatted_address”: [],
“addressComponent”: {
“country”: [],
“province”: [],
“city”: [],
“citycode”: [],
“district”: [],
“adcode”: [],
“township”: [],
“towncode”: [],
“streetNumber”: {
“street”: [],
“number”: [],
“location”: “{30.248937195159666, 115.07157838911984}”,
“direction”: [],
“distance”: []
}
},
“pois”: [],
“roads”: [],
“roadinters”: [],
“aois”: []
}
}
解决
官方文档中:
location经纬度坐标传入内容规则:
经度在前,纬度在后,经纬度间以“,”分割,经纬度小数点后不要超过 6 位。
DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。
更多推荐

所有评论(0)