ReverseGeoCoder 를 위해Latitude, Longitude 를 알고 있다면 주소를 얻기위해 하기 함수를 사용한다. (한글의 경우 :language=ko)public String getStringFromLocation(double lat, double lng) throws ClientProtocolException, IOException, JSONException { String address = "http://maps.googleapis.com/maps/api/geocode/json?latlng=" + lat + "," + lng + "&sensor=true&language=ko"; HttpGet httpGet = new HttpGet(address); HttpClient client = new DefaultHttpClient(); HttpResponse response; StringBuilder stringBuilder = new StringBuilder(); .......
↧