【问题标题】:Google Directions API - Multiple LegsGoogle Directions API - 多条腿
【发布时间】:2014-08-18 15:49:37
【问题描述】:

我想知道是否有人知道如何获得多条腿?

即,如果我尝试从两个不同地址的 Google 路线获取路线,它只会给我 1 条腿,但是当我在 Google 地图上执行完全相同的请求时,它会给我 4 条路线。任何想法如何获得这四条路线?

我的要求: https://maps.googleapis.com/maps/api/directions/json?origin=48%20yonge%20street,%20toronto,%20ontario&destination=184%20longhouse%20street,%20woodbridge,%20ontario&key=x&departure_time=1343641500&mode=transit

【问题讨论】:

    标签: google-maps google-maps-api-3 google-directions-api


    【解决方案1】:

    你想要路线替代品,而不是腿。

    使用alternatives=true parameter in the request

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-02-13
      • 1970-01-01
      • 1970-01-01
      • 2016-10-22
      • 1970-01-01
      • 2012-05-29
      • 2020-07-22
      相关资源
      最近更新 更多