Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Bus Stop Direction Labels

96 views
Skip to first unread message

Nick Spreen

unread,
Nov 13, 2024, 7:45:50 PM11/13/24
to mtadeveloperresources
I'm trying to find out the direction for all bus stops. As in the two letter heading (i.e. NW)
For the subway there seems to be two columns in MTA_Subway_Stations.csv from data ny gov

I can't find a similar resource for the bus. I *can* confirm that https://bustime.mta.info/api/where/stop/MTA_id.json returns this ID but I'm unsure what the API limits look like. Downloading all 1844 stops might take a while if I cannot do more than 60 requests per 3600 seconds.

I couldn't find anything online about a limit apart from this estimate that seems to be wrong, because I was able to do more than 60 requests in 1 minute but I don't want to run into the limit and get blocked.

— Nick

Nick Spreen

unread,
Nov 15, 2024, 9:15:31 AM11/15/24
to mtadeveloperresources
Since there wasn't a response I went with crawling all stations that way.

Here's an issue though: These stops don't have a direction

803153
903230
903346
903233
803154
903209
402102
803109
904920
903229
803215

Can anyone tell me why that is?

Nick Spreen

unread,
Nov 15, 2024, 11:17:12 AM11/15/24
to mtadeveloperresources
After checking other boroughs, none of these have a direction:

402102, 803109, 803153, 803154, 803215, 903209, 903229, 903230, 903233, 903346, 904920, 103196, 104531, 104532, 404250, 802148, 802164, 902079, 902109, 902209, 304083, 501402, 501623, 502550, 503491, 503721, 503863, 551130, 552028, 552095, 982067, 200771, 200775, 803031, 803042, 803220, 803221, 805002, 805031, 805032, 805033, 805034, 805035, 805036, 805037, 805038, 805039, 805043, 805113, 805114, 805115, 805116, 805117, 805118, 805154, 805158, 805159, 805160, 805161, 805162, 901108, 901109, 901110, 901111, 901112, 901113, 901114, 901116, 901169, 901171, 901177, 903167, 903208, 905041, 905063, 905121, 905122, 905148, 905149, 905150, 905153, 905160, 905214, 500668, 503102, 503103, 503106, 503174, 503728, 503842, 503970, 802124, 804017, 804042, 901449, 901450, 901451, 904005, 904006, 904016, 904047, 904107, 904384, 904977, 304373, 308062, 308644, 450372, 801052, 801089, 801107, 801108, 801145, 801152, 801195, 801197, 801199, 801200, 801204, 801205, 901165, 901172, 901176, 901190, 901193, 901194, 901195, 901196, 901197, 901200, 901201, 901236, 901311, 901442, 901444, 901465, 901473, 901494

138 out of the ~15k stops

Dillon Shen-Cruz

unread,
Nov 15, 2024, 1:34:38 PM11/15/24
to mtadeveloperresources
Hi Nick, thanks for flagging this. I spot-checked a few stops you've listed, and none of them had "routesAvailable" listed. I believe the shape of service is necessary to infer stopDirection for a given stop. As an example, here's the metadata for the first stop you listed above: https://bustime.mta.info/api/stop-for-id?_=1731694315751&stopId=MTA_803153.
Reply all
Reply to author
Forward
0 new messages