有没有办法访问谷歌公共交通地图的数据库?

发布于 2024-12-10 14:57:18 字数 339 浏览 1 评论 0原文

我想了解公共交通的数量和类型,以及每个公共交通在某个城市的停靠站。例如,我想要:

Number    Type    Stops
1         Metro   Stop1.1, Stop1.2, Stop1.3, ...
6         Bus     Stop6.1, Stop6.2, Stop6.3, ...
17        Tram    Stop17.1, Stop17.2, Stop17.3, ...
...       ...     ...

当然,我并不真正关心格式,我只是想知道如何访问数据,以免在我的网站中手动重新输入数据!

感谢您的帮助:-)

I'd like to have access to the numbers and type of public transportation and for each of them, their stops of a certain city. So for instance, I'd like to have :

Number    Type    Stops
1         Metro   Stop1.1, Stop1.2, Stop1.3, ...
6         Bus     Stop6.1, Stop6.2, Stop6.3, ...
17        Tram    Stop17.1, Stop17.2, Stop17.3, ...
...       ...     ...

Of course, I don't really care about the format, I just want to know how to have access to the data, in order to do not re-enter it manually in my website!

Thanks for any help :-)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

最单纯的乌龟 2024-12-17 14:57:18

GTFS Exchange 于 2016 年退役。
它对于不再更新/可用的旧 gtfs 文件仍然有用。不过,您现在应该参考以下数据库来获取静态 GTFS

  1. Transitland
  2. TransitFeeds
  3. TransitWiki
  4. Google 自己的汇编:PublicFeeds.wiki

它们重叠很多但不完全,所以检查所有这些总是好的。另请注意,一些较小的交通机构仍然不与这些服务共享数据,因此值得检查他们的网站。

最后,据我所知,谷歌地图使用这些相同的文件作为源数据。在他们的 GTFS 参考页面中,他们提到了以下内容:

向 Google 提交公交 Feed
如果您所在的公共机构负责监督所在城市的公共交通,则可以使用 GTFS 规范向 Google 地图和其他显示交通信息的 Google 应用程序提供时刻表和地理信息。

如果您提供向公众开放、有固定时间表和路线运营的交通服务,我们欢迎您的参与;它简单且免费。

不过,对于实时更新,我认为 Google 使用 GTFS RealTime

GTFS Exchange was retired in 2016.
It is still useful for legacy gtfs files that are not updated/available anymore. However, you should now refer to the following databases for static GTFS:

  1. Transitland
  2. TransitFeeds
  3. TransitWiki
  4. Google's own compilation: PublicFeeds.wiki

They overlap a lot but not completely, so it's always good to check all of them out. Also know that some smaller transit agencies still don't share their data with these services, so it's worth checking their website.

Finally, Google map uses these same files as their source data to my knowledge. In their reference page for GTFS, they mention the following:

Submitting a Transit feed to Google
If you're at a public agency that oversees public transportation for your city, you can use the GTFS specification to provide schedules and geographic information to Google Maps and other Google applications that show transit information.

If you provide a transportation service that is open to the public, and operates with fixed schedules and routes, we welcome your participation; it is simple and free.

For live updates though, I think that google uses GTFS RealTime.

他不在意 2024-12-17 14:57:18

有没有办法……总之,没有。此数据尚无法通过 Maps API 获得。

Is there a way... in a word, no. This data isn't available through the Maps API (yet).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文