Leo Lerdorf
Leo Lerdorf

Reputation: 1384

Display Google Map Direction instructions in different languages

I am using Google Map service. Now I integrated Google Map Direction into my application, but all direction instructions are English.

Anyone know the way to translate it into other languages? (e.g Vietnamese). You can see the site: maps.google.com, when you use your own language, all the direction instructions are translated into your language. That's what I need.

Thanks :)

Upvotes: 1

Views: 7867

Answers (2)

Sharky
Sharky

Reputation: 6284

Just specify your language using the language parameter when loading the API:

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&amp;language=en-US"></script>

See full list of supported languages here : https://developers.google.com/+/web/api/supported-languages

Upvotes: 1

Mark
Mark

Reputation: 5609

The directions service will either use the browser's configured language or you can specify the language to use when loading the API.

From the API docs:

Textual directions will be provided using the browser's preferred language setting, or the language specified when loading the API JavaScript using the language parameter. (For more information, see Localization.)

Upvotes: 4

Related Questions