주소 좌표 변환 (1) 썸네일형 리스트형 주소를 좌표로 (google maps api) address to postion 구글 api를 이용하여 주소를 좌표로 변환하는 메서드이다. 우선 메이븐에 json 라이브러리를 추가한다 com.googlecode.json-simple json-simple 1.1.1 json으로 받아서 double 배열에 담아서 리턴한다. public static double [] getAdressToPosition(String korAddress) { String urlStr; HttpURLConnection connection = null; BufferedReader reader = null; StringBuilder stringBuilder; double position[]; try { urlStr = "http://maps.googleapis.com/maps/api/geocode/json?sen.. 이전 1 다음