NYC subway math 2016-04-04 Apparently MTA (the company running the NYC subway) has a real-time API. My fascination for the subway takes autistic proportions and so obviously I had to analyze some of the data. The documentation is somewhat terrible, but here's some relevant code for how to use the API: from google.transit import gtfs_realtime_pb2 import urllib for feed_id in [1, 2, 11]: feed = gtfs
![NYC subway math](https://cdn-ak-scissors.b.st-hatena.com/image/square/2c0f70e3809583931cd061a65eeb2988d645d33a/height=288;version=1;width=512/https%3A%2F%2Ferikbern.com%2Fassets%2F1_trips.png)