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):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eGTFS defines a common format for public transportation schedules and geographic information, enabling data sharing between agencies and developers.\u003c/p\u003e\n"],["\u003cp\u003eGTFS feeds consist of text files within a ZIP file, covering aspects like stops, routes, trips, and other schedule data.\u003c/p\u003e\n"],["\u003cp\u003ePublic transit agencies can share their GTFS feeds publicly and submit them to Google for integration with Google Maps and other applications.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can leverage GTFS feeds to build applications like trip planners, timetables, and various other tools utilizing public transit data.\u003c/p\u003e\n"],["\u003cp\u003eResources like examples, references, validation tools, and community support are available for working with GTFS.\u003c/p\u003e\n"]]],["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"],null,["# GTFS Static Overview\n\nThe General Transit Feed Specification (GTFS), also known as *GTFS static* or *static transit*\nto differentiate it from the [GTFS realtime extension](/transit/gtfs-realtime), defines a common format for\npublic transportation schedules and associated geographic information. GTFS\n\"feeds\" let public transit agencies publish their transit data and\ndevelopers write applications that consume that data in an interoperable way.\n\n### How do I start?\n\n1. Take a look at the [GTFS examples](/transit/gtfs/examples).\n2. Create your own feeds using the [reference](/transit/gtfs/reference) as a guide.\n3. Test your feed using [validation tools](/transit/gtfs/guides/tools).\n4. Publish your feed, as [described in the Help Center](https://support.google.com/transitpartners/answer/1111577).\n\n### Overview of a GTFS feed\n\nA GTFS feed is composed of a series of text files collected in a ZIP\nfile. Each file models a particular aspect of transit information: stops,\nroutes, trips, and other schedule data. The details of each file are\ndefined in the [GTFS reference](/transit/gtfs/reference).\n\nAn example feed can be found in the [GTFS\nexamples](/transit/gtfs/examples). A transit agency can produce a GTFS feed to share their\npublic transit information with developers, who write tools that consume\nGTFS feeds to incorporate public transit information into their\napplications. GTFS can be used to power trip planners, time table\npublishers, and a variety of applications, too diverse to list here, that\nuse public transit information in some way.\n\n### Making a Transit feed publicly available\n\nMany applications are compatible with data in the GTFS format. The\nsimplest way to make a feed public is to host it on a web server and publish\nan announcement that makes it available for use.\n\nA list of transit agencies who provide public feeds is available on the\n[GoogleTransitDataFeed project site](http://code.google.com/p/googletransitdatafeed/wiki/PublicFeeds).\n\n### Submitting a Transit feed to Google\n\nIf you're at a public agency that oversees public transportation for your\ncity, you can use the GTFS specification to provide schedules and\ngeographic information to Google Maps and other Google applications that\nshow transit information.\n\nIf you provide a transportation service that is open to the public, and operates with fixed schedules\nand routes, we welcome your participation; it is\n[simple and available at no charge](https://support.google.com/transitpartners/answer/1111471).\n\n### Getting help\n\nTo participate in discussions around GTFS realtime and suggest changes and\nadditions to the specification, join the\n[GTFS realtime discussion group](http://groups.google.com/group/gtfs-realtime).\n\nAdditional resources are available on the [Community page](/transit/gtfs/community).\n\nIf you have questions about the Google Transit Partners program, contact\n[Google support](https://support.google.com/transitpartners/gethelp)."]]