M14 Route ID not working?

95 views
Skip to first unread message

Mathew Wong

unread,
Sep 6, 2024, 8:43:51 AMSep 6
to mtadeveloperresources
Hello,

Does anyone know how to find the correct Route ID for the M14D-SBS bus?  I think I found it in the documentation, but when I use "M14D+" as the Route ID I get a "No such route" error in the API 's response:

M14D API Response: {'Siri': {'ServiceDelivery': {'ResponseTimestamp': '2024-09-06T06:55:10.960-04:00', 'StopMonitoringDelivery': [{'ResponseTimestamp': '2024-09-06T06:55:10.960-04:00', 'ErrorCondition': {'OtherError': {'ErrorText': 'No such route: MTA NYCT_M14D . No such route: MTA_M14D . No such route: MTABC_M14D .'}, 'Description': 'No such route: MTA NYCT_M14D . No such route: MTA_M14D . No such route: MTABC_M14D .'}}]}}}

To find the Route ID I went to https://new.mta.info/developers and downloaded Manhattan's gtfs.zip file.

In route.txt, I found these Route IDs, but none of them work and all of them return the above errors.  Can someone help me figure out if I'm doing something wrong?  Thank you!

M141A,MTA NYCT,M141A,9th Avenue - Avenue A,via 14th St Crosstown,3,6CBE45,FFFFFF
M14A+,MTA NYCT,M14A-SBS,Lower East Side - Abingdon Sq,Select Bus Service via 14th St / Av A,3,6CBE45,FFFFFF
M14D+,MTA NYCT,M14D-SBS,Lower East Side - Chelsea Piers,Select Bus Service via 14th St / Av D,3,6CBE45,FFFFFF


Sunny

unread,
Sep 6, 2024, 9:51:26 AMSep 6
to mtadeveloperresources
Be sure you're passing the + sign properly encoded in the URL.

Mathew Wong

unread,
Sep 6, 2024, 4:57:09 PMSep 6
to mtadeveloperresources
This solved my problem precisely, thank you!  

For anyone else encountering a similar issue, I should have used "M14D%2B" instead of "M14D+".



Reply all
Reply to author
Forward
0 new messages