Thomaschaaf
Thomaschaaf

Reputation: 18196

Google Maps GeoCoding always uses browser language

I am using the Google AJAX API loader and want to get all the information in German so I am loading the maps API like this

google.load("maps", "2", {language : "de"});

I have tried deu, ger, de, de_DE and even en and ja_JPbut no success.

For those who don't understand my problem: http://dl.getdropbox.com/u/5910/Jing/2008-11-24_2018.png you can try it at http://apps.komola.de/gmaps.htm the address in English on the English browser and German on the German browser

Upvotes: 2

Views: 3673

Answers (1)

cwhite
cwhite

Reputation: 358

This API doc indicates the limitations of the map localization http://code.google.com/apis/maps/documentation/#Localization

The language appears to just affect the interface (buttons etc), base_domain affects which services it uses. So base_domain forces it to use google.de for the geocoding service.

<script src="http://www.google.com/jsapi?key=KEYHERE" type="text/javascript"></script>

<script type="text/javascript">
     google.load("maps", "2",{language: "de",base_domain: 'google.de'});
     ...
</script>

The loader doc mentions the base_domain. http://code.google.com/apis/ajax/documentation/#GoogleLoad

Upvotes: 3

Related Questions