I found the solution: Do not set the language parameter to xx_XX, but to xx (in my example de_DE instead of de). Both actually work (if you check out what's returned by the API URL, you can see that de_DE is treated as de_DE, and de as de_ALL), but setting de_DE will not translate the driving instructions.
I'm pretty sure this is a bug, but at least there's an easy workaround. On Aug 23, 12:22 pm, Pil <[email protected]> wrote: > The language parameter is working well for me, also for directions > requests. > > On Aug 23, 11:45 am, Martin <[email protected]> wrote: > > > I'm experiencing the same issue, but unfortunately neither of the > > solutions you offered takes care of it. I am setting the language > > parameter in the API reference, and it translates pretty much > > everything properly into the set language, except for the instructions > > returned by the DirectionsRenderer. Appending a region parameter to > > the DirectionsRequest does not help, because all that does (and is > > supposed to be doing according to the documentation) is bias the > > search toward a certain region. This does not have anything to do with > > translating the driving instructions. > > > Is this an actual bug (or not-yet-added feature) or is there a way to > > solve this problem? Any heads up would be appreciated. :) > > > Cheers, > > Martin > > > On Aug 18, 6:44 pm, Pil <[email protected]> wrote: > > > > You can use a language parameter in your API reference > > > >http://code.google.com/apis/maps/documentation/javascript/basics.html... > > > > You can also use a region parameter in your directions requests > > > >http://code.google.com/apis/maps/documentation/javascript/services.ht... > > > > On Aug 18, 6:08 pm, inotipiedideipitoni > > > > <[email protected]> wrote: > > > > hi, how can I set the language for the driving instructions? > > > > > now I make a request, but google maps give me the istructions in > > > > English, and i wanna it in Italian! > > > > > where I can specify it? > > > > this is my request (that works) > > > > > var request = > > > > { > > > > origin: lat1, > > > > destination: lat2, > > > > travelMode: > > > > google.maps.DirectionsTravelMode.DRIVING > > > > }; > > > > thanks -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
