2012-07-22 3 views

답변

3

당신은 Google지도 API를 사용하여 위치의 주소를 얻을 수 있습니다 :

function codeLatLng(lat, lng) { 
    var geocoder = new google.maps.Geocoder(), 
     latlng = new google.maps.LatLng(lat, lng); 

    geocoder.geocode({'latLng': latlng}, function(results, status) { 
     if (status == google.maps.GeocoderStatus.OK) { 
     if (results[0]) { 
      console.log(results[0].formatted_address); 
     } else { 
      console.info("No results found"); 
     } 
     } else { 
     console.info("Geocoder failed due to: " + status); 
     } 
    }); 
    } 

는 희망이 위의 훌륭한 대답을 사용하여, 당신은 당신의 html 파일이 추가한다고 언급