根据城市调用百度接口查询经纬度

@Override
public MyResult findCityDetect(HttpServletRequest request, HttpServletResponse response, String type) {
try {
List list = dataCleanDao.findCityDetect(type, -1, -1);
for (Map map : list) {
String cname = (String) map.get(“locName”);
if(StringUtils.isNullOrEmpty(cname)){
continue;
}
if(“新疆生产建设兵团”.equals(cname)){
cname = “新疆”;
}
GetLatAndLngByBaidu getLatAndLngByBaidu = new GetLatAndLngByBaidu();
Object[] o = getLatAndLngByBaidu.getCoordinate(cname);
Map

猜你喜欢

转载自blog.csdn.net/qq_28710139/article/details/81776994
今日推荐