liujie
2025-07-15 8652e69d17ab0c1a5884c662a9f3f950ddf57948
springcloud_k8s_panzhihuazhihuishequ/service_westcommittee/src/main/java/com/panzhihua/westcommittee/utils/BaiduMapUtil.java
@@ -10,6 +10,7 @@
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.util.LinkedHashMap;
import java.util.Map;
@@ -36,6 +37,8 @@
        //
        //
        //requestGetAK(URL, params);
        JSONArray jsonArray = searchLocation("天安门", "39.909,116.39742");
        System.out.println(jsonArray.size());
        System.out.println(geoconv("116.390838,39.916245").toJSONString());
    }
@@ -104,6 +107,9 @@
        }
        return jsonArray;
    }
    public static JSONObject requestGetAKObject(String strUrl, Map<String, String> param) throws Exception {
        if (strUrl == null || strUrl.length() <= 0 || param == null || param.size() <= 0) {
            return new JSONObject();