Come afferma API di riferimento:Cambiare la lingua in cui Geocoder.geocode() restituisce i risultati
The Geocoding API defines a geocoding request using the following URL parameters:
- language (optional) — The language in which to return results. See the supported list of domain languages. Note that we often update supported languages so this list may not be exhaustive. If language is not supplied, the geocoder will attempt to use the native language of the domain from which the request is sent wherever possible.
Tuttavia, specificando il parametro language
non sembra di avere effetto (testato con Firefox 8, 9 e IE Chrome 15).
new google.maps.Geocoder().geocode({
'latLng' : new google.maps.LatLng(position.coords.latitude, position.coords.longitude),
'language': 'en'},
function(results, status) {}
);
questo non è del tutto corretto: un oggetto 'GeocoderRequest' può contenere un 'location' di tipo 'LatLng'. Ma hai ragione, non posso specificare la lingua in questo modo. – 0xbadf00d
@SaschaHoll sì, ho trascurato 'location', ma non dovrebbe essere chiamato 'latlng' come hai incluso nella tua domanda. – omarello
Il parametro relativo alla lingua funziona perfettamente, anche se non l'ho provato su altri dispositivi o browser, ma grazie in anticipo. – hina10531