I found that if you set the "base_domain" property in the options when
you load the maps api like:
google.load("maps", "2.x", {"callback": function(){ }, "language" :
language, "base_domain": "maps.google.se"});
This will make the api to load the swedish version of the api and all
the results will be in swedish.
//Magnus
On Apr 22, 9:23 am, GoOFfy <[email protected]> wrote:
> I join to this question.
> Is there a way I can force the response to be in a language of MY
> choice?
>
> On Apr 3, 4:01 pm, "Magnus O." <[email protected]> wrote:
>
> > I noticed that the respone is in the language set in the browser, if I
> > set my browser default language to swedish the response is in swedish,
> > if I set it to english itäs in english and so on...
>
> > Is there a way I can force the response to be in a language of MY
> > choice?
>
> > regards,
>
> > Magnus
>
> > On Apr 2, 9:59 am, "Magnus O." <[email protected]> wrote:
>
> > > But it's not the GDirections class I use. I'm using the
> > > GClientGeocoder class to geocode and adress to a lng/lat.
>
> > > //Magnus
>
> > > On Apr 1, 3:10 pm, "[email protected]" <[email protected]>
> > > wrote:
>
> > > > On Apr 1, 1:04 am, "Magnus O." <[email protected]> wrote:
>
> > > > > Hi!,
>
> > > > > It seems like the answers from the getLocations method in
> > > > > GClientGeocoder is not localized.
>
> > > > > I have loaded the maps api like this:
>
> > > > > google.load("maps", "2", {"locale" : "sv"});
> > > > > google.setOnLoadCallback(initMap);
>
> > > > > The maps is in swedish but when I perform a search with getLocations
> > > > > (string street) the answers are in english.
>
> > > > > I traced a search and found that the results where fetched
> > > > > with:http://maps.google.com/maps/geo?output=json&oe=utf-8&q=g%C3%B6te&gl=S...
>
> > > > > If I add the hl=sv the results are translated to swedish. Why is the
> > > > > hl=sv parameter not set?
>
> > > > GDirections has its own "locale"
> > > > option:http://code.google.com/apis/maps/documentation/reference.html#GDirect...
>
> > > > -- Larry
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---