我找到了用于反向地理编码的代码:
var point = new GLatLng (lat[1],long[1]);
var geocoder = new GClientGeocoder();
geocoder.getLocations (point, function(result) { alert (lat[1]+' '+long[1]+' '+result.address); });
但它会弹出警报,说 result.address 是“未定义”。任何想法,可能是什么问题?
编辑:得到它的工作,谢谢。