위도 및 경도 값을 Java 스크립트의 주소로 변환하는 방법은 무엇입니까? 내가 geolocation을 시도했지만 그 표시가 10 주소 만. 그것은 10 개 이상의 주소를 표시하지 않습니다. 제발 도와주세요, 미리 감사드립니다. 내 코드 :주소로 변환 위도 및 경도 값
if (result.Status.code == G_GEO_SUCCESS) {
for (var i = 0; i < result.Placemark.length; i++) {
var addres = result.Placemark[i].address;
// var t1=setTimeout(function(){x.value="2 seconds"},2000);
if (addres == "") {
// alert('blank');
document.getElementById("msg" + noofid).innerHTML = "Unable to find location";
} else {
document.getElementById("msg" + noofid).innerHTML = result.Placemark[i].address;
}
//alert("address");
}
}
// ====== Decode the error status ======
else {
var reason = "Code " + result.Status.code;
if (reasons[result.Status.code]) {
reason = reasons[result.Status.code];
}
alert('Could not find "' + search + '" '
+ reason);
}
});
}
Google지도 API를 사용할 수 있습니다. – Depado
아침에 직접 양식을 작성하려고합니다. – Dhandabani