On Nov 2, 9:40 am, JKurtock <[email protected]> wrote: > I am not aware of a "language" component of the directionsService > request (so that probably won't work). > > But the Google Maps API > FAQhttp://code.google.com/intl/en/apis/maps/faq.html#languagesupport > indicates that the "API will sense the [language] browser settings of > the user." I tried re-setting my browser to French, and the > directions were partially in French (sigh ...) So you may need to > fuss with it, and report back your success.
There is also this in the documentation: http://code.google.com/apis/maps/documentation/javascript/basics.html#Localization which says you can do this: ============ For example, to display a Maps API application in Japanese, add &language=ja to the <script> tag as shown below: <script type="text/javascript" src="http://maps.google.com/maps/api/js? sensor=false&language=ja"> ============ And there is a language property defined in the GeocoderRequest object: http://code.google.com/apis/maps/documentation/javascript/reference.html#GeocoderRequest language string Preferred language for results. Optional. But that isn't the directions service. -- Larry > > - Jeff > > On Nov 2, 3:33 am, nivedita hazra <[email protected]> wrote: > > > > > Hi, > > > How to get the directions between two locations in different > > languages? > > > We have implemented Google maps as: > > > var directionsService = new google.maps.DirectionsService(); > > > var request = { > > origin: startAddress, > > destination: '${storeAddr.address1}, ${storeAddr.city}, $ > > {storeAddr.state}, ${storeAddr.zipCode}', > > language: 'fr', > > travelMode: google.maps.DirectionsTravelMode.DRIVING > > > }; > > > directionsService.route(request, function(result, status) > > > But still the directions are appearing in english language. > > > Do i need to specify the language some where else or in some other > > manner. > > > Please help.- Hide quoted text - > > - Show quoted text - -- 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.
