-
Notifications
You must be signed in to change notification settings - Fork 0
MTA
John Ioannidis edited this page Mar 9, 2020
·
1 revision
- (https://datamine.mta.info/)[Main page]
- (https://datamine.mta.info/user/register)[Get an MTA API key] and
put it in the environment variabla
MTAAPIKEY
for what follows. - (https://datamine.mta.info/list-of-feeds)[Static data feeds]
Information from http://bustime.mta.info/wiki/Developers/OneBusAwayRESTfulAPI
Use either .xml
or .json
as extensions
-
(https://bustime.mta.info/api/where/agencies-with-coverage.xml?key=$MTABUSKEY)[Agencies with coverage]
-
(https://bustime.mta.info/api/where/routes-for-agency/MTA%20NYCT.xml?key=$MTABUSKEY)[Routes for agency MTA NYCT]
-
(https://bustime.mta.info/api/where/stops-for-route/MTA%20NYCT_M7.xml?key=$MTABUSKEY)[Stops for route M7]
-
(https://bustime.mta.info/api/where/stops-for-location.json?lat=40.7884234&lon=-73.97623494&latSpan=0.005&lonSpan=0.005&key=$MTABUSKEY)[Stops near JI's home at 40.7884234,-73.9762349]
-
(https://bustime.mta.info/api/siri/stop-monitoring.xml?MonitoringRef=401027&key=$MTABUSKEY)[arrival information for stop on W 86]
protoc -I=. --cpp_out=. nyct-subway.proto