Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gtfs docs #2862

Merged
merged 8 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ parts:
- file: warehouse/what_is_agency
- file: warehouse/developing_dbt_models
- file: warehouse/adding_oneoff_data
- file: warehouse/what_is_gtfs
- file: datasets_and_tables/overview
sections:
- file: datasets_and_tables/transitdatabase
Expand Down
1 change: 1 addition & 0 deletions docs/warehouse/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ The section serves as an introduction to the Cal-ITP warehouse through conventio
* [Starter Kit](warehouse-starter-kit-page)
* [Adding Data to the Warehouse](adding-data-to-warehouse)
* [Developing dbt Models](developing-dbt-models)
* [What is GTFS, anyway?](what-is-gtfs)
20 changes: 20 additions & 0 deletions docs/warehouse/what_is_gtfs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
(what-is-gtfs)=
# What is GTFS, anyway?

Lots of information in the warehouse comes from the General Transit Feed Specification, or GTFS.

## Video Introduction

### [Start by watching this amazing video that Laurie made!](https://www.youtube.com/watch?v=Us6j5GYoLtk)

### Video Notes

* Laurie mentions downloading an example feed to look at the files. This is a great idea! But when working with our data warehouse remember that you don't have to interact with raw GTFS feeds directly (lots of important work has been done for you!). Still, we recommend taking a look at an example feed to understand what it looks like. Here's one from [Big Blue Bus](http://gtfs.bigbluebus.com/current.zip).
* We don't really use Partridge, but here's a link to their [repo](https://github.com/remix/partridge) in case you want to see where that handy diagram came from. Notice how trips are central to a GTFS feed.
* Ignore references to `calitp_url_number`, `calitp_extracted_at`, or `calitp_deleted_at`. These refer to an older version of our warehouse. Today, we tell feeds apart with keys such as `gtfs_dataset_key` and `feed_key`. Learn about our current data warehouse [here](warehouse-starter-kit-page).
* A "route" is a somewhat ambiguous concept! Transit providers have a lot of flexibility in branding their services. The same route can, and often does, have some trips following one path and some trips following another. GTFS has another concept of a "shape" which describes a path through physical space that one or more trips can follow.

## Further GTFS Resources

* [Slides](https://docs.google.com/presentation/d/1fqIeXevb18T5s5k6XPxFbVEMHBPybeV29rFoFXROCw8/) from the video
* [GTFS Specification](https://gtfs.org)
Loading