Quantcast
Channel: JACKSLACK 의 블로그
Viewing all articles
Browse latest Browse all 148

ReverseGeoCoder 한글, 그리고 httpResponse의 JSONObject 인코딩을 UTF-8로 변경

$
0
0
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(); .......

Viewing all articles
Browse latest Browse all 148

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>