【问题标题】:Is GTFS-realtime data in Google Maps Directions APIGoogle Maps Directions API 中的 GTFS 实时数据
【发布时间】:2016-02-12 15:54:53
【问题描述】:

我想知道:

  • GTFS-realtime 数据是否可从 Google Maps Directions API 获得?
  • 如果没有,是否有计划在 Google Maps Directions API 中包含 GTFS 实时数据?

我是一个开发集成了 Google Maps Directions API 的网络应用程序的团队的成员。该网站提供了一个“旅行计划”表格,用户在该表格中输入从、到、日期和时间数据以在网站中显示旅行选项。我们的网站访问者对公交运输选项特别感兴趣。

集成运行良好。但是,Google API 返回的数据包含 GTFS 实时数据。我们知道,Google 通过公交提供商提供的 GTFS 提要知道实时数据,并且当通过 https://www.google.com/maps 进行相同搜索时,我们会看到实时数据。

【问题讨论】:

    标签: google-maps google-directions-api


    【解决方案1】:

    我查看了 Google Maps API DirectionsResult 对象 (https://developers.google.com/maps/documentation/javascript/directions#TransitInformation) 中返回的“交通特定​​信息”。本文档中未提及实时信息。即使提供了实时信息(我怀疑它不是),也无法区分预定时间和预测时间。

    【讨论】:

      猜你喜欢
      • 2016-10-22
      • 2015-12-12
      • 1970-01-01
      • 2011-05-24
      • 1970-01-01
      • 2015-07-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多