I've waste a lot of time, but I'm not able to do it.
I'll appreciate help.
How to get the result of the inverse geolocation in a variable?
here is the script:
geocoder = new GClientGeocoder();
geocoder.getLocations('43.3372814,(-1.79548311)', showAddress);
function showAddress(response) {
place = response.Placemark[0];
point = new GLatLng(place.Point.coordinates[1],place.Point.coordinates[0]);
marker = new GMarker(point);
map.addOverlay(marker);
return(place.address);
}
I've tried to do:
var address = geocoder.getLocations('43.3372814,(-1.79548311)', showAddress);
but with no result.
Really thnx for your help