0
주소 목록 (거리, 도시, 국가, 우편 번호)이 있으며 Google지도에서 위도와 경도를 표시하고 싶습니다. 이 가능합니까?장소 주소를 사용하여 좌표 찾기
주소 목록 (거리, 도시, 국가, 우편 번호)이 있으며 Google지도에서 위도와 경도를 표시하고 싶습니다. 이 가능합니까?장소 주소를 사용하여 좌표 찾기
내 생각에 Geocoding이 (가) 찾고 있습니다.
네 덕분에
이
function codeAddress() {
var address = document.getElementById("address").value;
geocoder.geocode({ 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
var marker = new google.maps.Marker({
map: map,
position: results[0].geometry.location
});
} else {
alert("Geocode was not successful for the following reason: " + status);
}
});
}
을 위해 무엇을 찾고있다