JAVASCRIPT - Daum Map API를 사용해서 좌표 -> 주소 변환하기

Published on: 2010. 9. 1. 14:11 by louis.dev
function addAddress(){
    var oScript = document.createElement('script');
    oScript.type ='text/javascript';
    oScript.charset ='utf-8';         
    oScript.src = 'http://apis.daum.net/maps/coord2addr?apikey=' + apiKey +
                  '&latitude=' + '${latitude}' + '&longitude=' + '${longitude}' +
                  '&output=json&callback=addrSearch';
    document.getElementsByTagName('head')[0].appendChild(oScript);
}
function addrSearch(data){
    var resultForm = document.getElementById("rvAddr");
    resultForm.innerHTML = data.fullName;
}