Add multi-system agency support to download script#16
Merged
themightychris merged 1 commit intomainfrom Jan 28, 2026
Merged
Conversation
Support agencies with multiple systems (e.g., SEPTA bus/rail) by updating the download script to parse agency/system syntax and group feeds appropriately. Users can now download all systems with --agency septa or a specific system with --agency septa/bus. Updated dbt model and documentation to expose system metadata. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Support agencies with multiple transit systems (e.g., SEPTA with bus and rail) by adding system filtering to the download script. Users can now view system breakdown with
--list, download all systems with--agency septa, or download a specific system with--agency septa/bus. The dbt model now exposes system_id and system_name for analysis.Changes
get_agencies(): Restructured to nest systems within agencies, using None key for single-system agenciesparse_agency_arg(): Parsesagency/systemsyntaxlist_agencies(): Shows system breakdown for multi-system agenciesdownload_agency(): New system_id parameter to optionally filter downloadsstg_available_feeds.sql: Added system_id and system_name columnsBackward compatible - existing commands like
--agency actransitwork unchanged.