您如何使用 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
});