This is what I've done :
var geocoder = new google.maps.Geocoder();
var location = new google.maps.LatLng(45.930976,10.639744);
geocoder.geocode({ 'latLng': location }, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
alert(results[1].address_components[0].long_name);
}
});
but I'd like to prefeer not using address_components[i] which parameter, due to the fact it could be different for each request. How is the parameter to get the city? (or location, or country, and so on...).