javascript Google Maps API v3.5 Geocoder 语言选项
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6464788/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Google Maps API v3.5 Geocoder language option
提问by Veselin
I use Google Maps API to get city name in 2 different languages by users' coordinates. Before version 3.5 of the API I was able to use language option in geocoder's request, but since June 8, 2011 this option is removed.
Can someone give me any idea how can I get the city name in two or more different languages with maps' geocoder?
I included the js script with language option something like this - http://maps.google.com/maps/api/js?sensor=false&language=ja
我使用 Google Maps API 通过用户坐标获取 2 种不同语言的城市名称。在 API 3.5 版之前,我可以在地理编码器的请求中使用语言选项,但自 2011 年 6 月 8 日起,此选项已被删除。
有人可以告诉我如何使用地图的地理编码器以两种或多种不同语言获取城市名称吗?
我包含了带有语言选项的 js 脚本 - http://maps.google.com/maps/api/js?sensor=false&language=ja