MTAPI
MTAPI copied to clipboard
Generate stations.json using the offical MTA station list CSV
The MTA does have listing of all stations in their dataset defined as "Station Locations" here
Every station is part of a Complex that can contain other stations. IE
Station ID,Complex ID,GTFS Stop ID,Division,Line,Stop Name,Borough,Daytime Routes,Structure,GTFS Latitude,GTFS Longitude,North Direction Label,South Direction Label,ADA,ADA Direction Notes,ADA NB,ADA SB,Capital Outage NB,Capital Outage SB
27,617,R31,BMT,4th Av,Atlantic Av-Barclays Ctr,Bk,D N R,Subway,40.683666,-73.97881,Manhattan,Coney Island - Bay Ridge,1,,,,,
40,617,D24,BMT,Broadway - Brighton,Atlantic Av-Barclays Ctr,Bk,B Q,Subway,40.68446,-73.97689,Manhattan,Brighton Beach & Coney Island,1,,,,,
133,133,L24,BMT,Canarsie,Atlantic Av,Bk,L,Elevated,40.675345,-73.903097,Manhattan,Canarsie - Rockaway Parkway,0,,,,,
338,617,235,IRT,Eastern Pky,Atlantic Av-Barclays Ctr,Bk,2 3 4 5,Subway,40.684359,-73.977666,Manhattan,Flatbush - New Lots,1,,,,,
Here you can see that Atlantic Av-Barclays Ctr has 3 rows, and the "Complex ID" is static accross all of them. This makes the station IDs consistent across all other MTA integrations as well.
http://web.mta.info/developers/developer-data-terms.html#data
This is likely not mergeable as is, because WTFT hard codes md5 generated station IDs for defaults, and people's stored favorites also use them. However getting to a consistent state of station IDs across MTA integrations would be useful.
Thanks for posting this! I agree with both of your points that it'd be an improvement but also a breaking change. I'll need to think about the migration path.