【发布时间】:2011-09-27 08:52:59
【问题描述】:
如何使用 Google Maps V3 API 在客户端执行反向地理编码?从地址到 LatLng 的正向地理编码是直接的(代码如下),但是如何对反向地理编码执行相同的操作?
普通地理编码:
geocoder = new google.maps.Geocoder();
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
});
【问题讨论】:
标签: javascript google-maps geocoding reverse-geocoding