これは私がやったことです:
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);
}
});
しかし、リクエストごとに異なる可能性があるため、 address_components[i] which パラメータを使用しないことをお勧めします。都市を取得するパラメータはどのようになっていますか? (または場所、国など...)。