Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Best Practices for structuring General Transit Feed Specification Schedule data

License

Notifications You must be signed in to change notification settings

MobilityData/GTFS_Schedule_Best-Practices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ THIS REPO IS NOW ARCHIVED.

It will remain available in read-only access. May 21, 2024. Has been moved here: https://github.com/google/transit/blob/master/gtfs/best-practices/best-practices.md

GTFS Schedule Best Practices

Best Practices for Structuring GTFS Schedule Data.

⚠️ NOTE: The best practices are in the process of being merged into the spec (More info here). If you'd like to suggest a new best practice, please go to https://github.com/google/transit/ to open an issue or create a PR. ⚠️

Current Version

The current release is v1.1

Documentation Structure

The GTFS Schedule Best Practices are written in YAML variables. More information about YAML syntax and structure may be found here. Each variable is defined as follows:

  • field_name: The name of the GTFS field being described
  • recommendations: An array of the recommendations provided for each field_name
    • ID: A unique identifying integer of the corresponding recommendation.
    • tags: An array of System Tags used to denote that the recommendation will assist with the described task. Values include 'human-readability', 'trip-planners', 'timetables', and 'accessibility'.
    • text: The text of the recommendation. This variable should begin with a vertical bar ( | ) followed by an indented newline. This will preserve any equally indented newlines in the text. Simple Markdown is allowed and any HTML should be avoided.
    • example_table: An optional variable, this allows for example tables (or any other HTML entity) to be placed immediately after the recommendation text. This variable should begin with a vertical bar ( | ) followed by an indented newline. This will preserve any equally indented newlines in the text. Markdown will not function in this variable and should be exclusively used for HTML elements.

Elements of Best Practices not in a table may be found below the YAML front matter and should be written in Markdown.

Best Practices Versioning

To enable the evolution of the GTFS Schedule Best Practices, semantic versioning tracks additions and breaking changes. Semantic versions are established by a git tag in the form of vX.Y where X.Y is the version name. Multiple changes (commits) may be batched into a single new release.

A whole integer increase is used for breaking changes (MAJOR changes). A decimal increase is used for non-breaking changes (MINOR changes or patches).

Breaking changes include:

  • Removing or changing a Best Practice.

Non-breaking changes include:

  • Adding Best Practices.
  • Modifying documentation language that clarifies semantics or structure.

License

Except as otherwise noted, the content of this repository is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License.

About

Best Practices for structuring General Transit Feed Specification Schedule data

Resources

License

Stars

Watchers

Forks

Packages

No packages published