From 0fcf38a41ba66c37aa33bfc750585b0392c8e89f Mon Sep 17 00:00:00 2001 From: Kevin Sweeney Date: Mon, 5 Oct 2026 13:09:53 -0400 Subject: [PATCH] Fetch the Franklin Av Shuttle from the BDFM feed 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 --- pymta/constants.py | 6 +++--- tests/test_subway_feed.py | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pymta/constants.py b/pymta/constants.py index 4e2b565..487a8ef 100644 --- a/pymta/constants.py +++ b/pymta/constants.py @@ -56,22 +56,22 @@ "6": "1", "7": "1", "GS": "1", - # Feed A: A, C, E, H (Rockaway Shuttle), FS (Franklin Av Shuttle) + # Feed A: A, C, E, H (Rockaway Shuttle) "A": "A", "C": "A", "E": "A", "H": "A", - "FS": "A", # Feed N: N, Q, R, W "N": "N", "Q": "N", "R": "N", "W": "N", - # Feed B: B, D, F, M + # Feed B: B, D, F, M, FS (Franklin Av Shuttle) "B": "B", "D": "B", "F": "B", "M": "B", + "FS": "B", # Feed L: L "L": "L", # Feed SI: SIR (Staten Island Railway) diff --git a/tests/test_subway_feed.py b/tests/test_subway_feed.py index 95ce14a..cfc50e1 100644 --- a/tests/test_subway_feed.py +++ b/tests/test_subway_feed.py @@ -27,6 +27,8 @@ def test_get_feed_id_for_route(): assert SubwayFeed.get_feed_id_for_route("Q") == "N" assert SubwayFeed.get_feed_id_for_route("1") == "1" assert SubwayFeed.get_feed_id_for_route("F") == "B" + # The Franklin Av Shuttle is published in the BDFM feed, not ACE. + assert SubwayFeed.get_feed_id_for_route("FS") == "B" def test_get_feed_id_for_invalid_route():