Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
GTFS Static 概览
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
通用公交 Feed 规范 (GTFS) 也称为 GTFS 静态或静态公交(以将其与 GTFS 实时扩展区分开来),用于定义公共交通时刻表和相关地理信息的通用格式。借助 GTFS“Feed”,公交公司可以发布其公交数据,开发者可以编写以互操作方式使用这些数据的应用。
GTFS Feed 概览
GTFS Feed 由 ZIP 文件中收集的一系列文本文件组成。每个文件都对公交信息的特定方面进行建模:经停点、路线、行程和其他时间表数据。GTFS 参考文档中定义了每个文件的详细信息。
如需查看 Feed 示例,请参阅 GTFS 示例。公交公司可以生成 GTFS Feed 来与开发者分享其公交信息,开发者则编写使用 GTFS Feed 的工具,以便将公交信息纳入其应用。GTFS 可用于为行程规划工具、时间表发布商以及各种以某种方式使用公共交通信息的应用(数量太多,无法一一列出)提供支持。
公开提供公交 Feed
许多应用都与 GTFS 格式的数据兼容。若要将 Feed 设为公开,最简单的方法是在 Web 服务器上托管该 Feed,并发布一条公告,以便用户可以使用该 Feed。
GoogleTransitDataFeed 项目网站上列出了提供公开 Feed 的公交公司。
向 Google 提交公交 Feed
如果您是负责监管所在城市公共交通的公共机构,则可以使用 GTFS 规范向 Google 地图和其他显示公交信息的 Google 应用提供时刻表和地理信息。
如果您提供面向公众的交通服务,并且按照固定时间表和路线运营,我们欢迎您参与;注册流程简单,而且完全免费。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-02-13。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2026-02-13。"],[],["The General Transit Feed Specification (GTFS) is a format for public transportation schedules and geographic data, enabling transit agencies to publish data and developers to build applications. Key actions include: reviewing GTFS examples, creating feeds using the reference guide, validating feeds with tools, and publishing them. Agencies can share feeds publicly via a web server or submit them to Google for inclusion in Google Maps. GTFS allows the use in various applications like trip planners.\n"]]