Skip to content

Fetch the Franklin Av Shuttle from the BDFM feed - #13

Merged
OnFreund merged 1 commit into
OnFreund:mainfrom
restlessdesign:fix-franklin-shuttle-feed
Oct 12, 2026
Merged

OnFreund merged 1 commit into
OnFreund:mainfrom
restlessdesign:fix-franklin-shuttle-feed

Conversation

@restlessdesign

Copy link
Copy Markdown
Contributor

The MTA publishes Franklin Avenue Shuttle (FS) trips in nyct/gtfs-bdfm, but LINE_TO_FEED maps FS to "A" (nyct/gtfs-ace). As a result, get_arrivals() for any FS stop always returns an empty list. In Home Assistant's MTA integration, that makes the shuttle look like it isn't running.

I counted trip_update entities per route in every subway feed on a weekday afternoon:

Feed Routes
gtfs-ace A, C, E, H — no FS
gtfs-bdfm B, D, F, M, FS (16 trips)

FS was likewise absent from ACE and present in BDFM on two earlier checks. The Rockaway Park Shuttle (H) is correctly in ACE, so this change moves only FS.

Changes

  • Map "FS" to feed "B" and update the two feed comments.
  • Add an assertion for FS to test_get_feed_id_for_route. It fails on main and passes with this change; the full suite passes (25 tests).

I left the version number alone, since your releases bump it.

🤖 Generated with Claude Code

@OnFreund

Copy link
Copy Markdown
Owner

Thanks @restlessdesign. Can you rebase to pick up CI tests?

The MTA publishes Franklin Avenue Shuttle (FS) trips in nyct/gtfs-bdfm,
but LINE_TO_FEED mapped FS to the ACE feed, so get_arrivals() for any FS
stop always returned an empty list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@restlessdesign
restlessdesign force-pushed the fix-franklin-shuttle-feed branch from 84601f9 to 0fcf38a Compare October 11, 2026 20:27
@restlessdesign

Copy link
Copy Markdown
Contributor Author

Rebased onto main, so it's now a single commit on top of the new CI. The test workflow may need your approval to run, since this PR comes from a fork.

@OnFreund
OnFreund merged commit 0a36b64 into OnFreund:main Oct 12, 2026
1 check passed
@OnFreund OnFreund mentioned this pull request Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants