zcy1995

public static JSONObject dizhi(String ak,String longitude,String latitude,String output){
String URL = "https://api.map.baidu.com/geocoder/v2/?ak="+ak+"&location="+latitude+","+longitude+"&output="+output;
JSONObject httpsRequest = CommonUtil.httpsRequest(URL, "GET","");
JSONObject jsonObject = httpsRequest.getJSONObject("result").getJSONObject("addressComponent");
// String province = jsonObject.getString("province");
// String city = jsonObject.getString("city");
// String district = jsonObject.getString("district");
// String street = jsonObject.getString("street");
// String snumber = jsonObject.getString("street_number");
return jsonObject;
}

分类:

技术点:

相关文章:

  • 2021-12-06
  • 2021-09-21
  • 2021-08-21
  • 2022-01-03
  • 2022-12-23
  • 2021-07-10
  • 2022-12-23
猜你喜欢
  • 2021-11-08
  • 2021-12-06
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
相关资源
相似解决方案