高德地图为用户提供地址对应的经纬度信息
发布时间
阅读量:
阅读量
/** * 根据地址获取经纬度信息
* @param address
* @return
*/
public static Map<String,String> getPotByaddress(String address,String city){
String url = "http://restapi.amap.com/v3/geocode/geo?output=JSON&key="+"****你自己的key*****"+"&city="+city;
// String url = "http://restapi.amap.com/v3/geocode/geo?address="+address+"&output=JSON&key="+"****你自己的key*****";
JSONObject obj;
Map<String,String> data = new HashMap<>();
obj = JSONObject.parseObject(HttpUtilnew.getRequest(url,"address:"+address));
String s
全部评论 (0)
还没有任何评论哟~
