【问题标题】:google maps transit directions html_instructions language谷歌地图公交路线 html_instructions 语言
【发布时间】:2013-03-04 09:50:54
【问题描述】:

我正在使用 Google 地图路线 API 从 Google 地图 API 获取公交模式的路线。

我可以成功读取所有 json 对象并获得我想要的信息,但我有一个问题。

api 返回的 jsonarray 包含有关下一条指令的信息,该指令以希腊语言显示给用户。

所以当我尝试解析 html_instructions 时,我得到了英文部分,但我得到了希腊部分的奇怪字母,我该怎么做才能解决这个问题并显示希腊语?

您可以通过运行以下 api 找到 json 的示例。

http://maps.googleapis.com/maps/api/directions/json?origin=Athens&destination=Kallithea&sensor=false&departure_time=1354320000&mode=transit

【问题讨论】:

    标签: google-maps directions


    【解决方案1】:

    您可以在请求中添加参数 language=el。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-08-28
      • 2017-01-06
      • 1970-01-01
      • 2014-08-12
      • 1970-01-01
      • 1970-01-01
      • 2014-08-14
      相关资源
      最近更新 更多