Java调用百度/高德地图API实现根据经纬度查地名
Java调用百度地图API实现根据经纬度查地名功能:需要根据经纬度来查询所属的乡镇地址我们选择了百度地图的逆地理编码来解决首先要申请自己的密钥:密钥@Slf4j@Servicepublic class AreaServiceImpl implements AreaService { //这里是把百度地图的ak密钥写在了配置文件,可以直接写死在这里 //final String ak="xxxxxx"; @Value("${baiduapi.ak}") private Str
原创
2021-03-29 09:31:37 ·
1172 阅读 ·
0 评论