|
@@ -53,6 +53,7 @@ public class MapConfigController {
|
|
|
try {
|
|
|
String url = mapConfig.getGeocodeUrl().replace("{address}",param.getAddress());
|
|
|
String s = HttpUtil.get(url);
|
|
|
+ log.info("map-resp:{}",s);
|
|
|
JSONObject jsonObject = JSON.parseObject(s);
|
|
|
JSONArray jsonArray = jsonObject.getJSONArray(mapConfig.getRespListKey());
|
|
|
List<MapVo> mapVos = new ArrayList<>();
|
|
@@ -74,7 +75,7 @@ public class MapConfigController {
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
String s = HttpUtil.get("https://restapi.amap.com/v3/place/text?keywords={address}&offset=20&page=1&key=3609daa52e8ae4493393292213e2fb98&extensions=base");
|
|
|
-
|
|
|
+ System.out.println(s);
|
|
|
}
|
|
|
}
|
|
|
|