You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For buses on each route we display, we should add lines representing the routes. For now, we can choose a color like blue, but each route actually has its own color.
For buses on each route we display, we should add lines representing the routes. For now, we can choose a color like blue, but each route actually has its own color.
Our main data source is http://www.miamidade.gov/transit/WebServices/Transit_XML_Data_Feeds.pdf but that data is in XML format so we have a server generating the data in JSON:
http://miami-transit-api.herokuapp.com/api/Buses.json (this is down right now for some reason)
Backup: http://miami-transit-api-gtfsrt.herokuapp.com/api/Buses.json
Docs: http://julianbonilla.github.io/miami-transit-api-docs/
Bus Routes:
http://miami-transit-api-gtfsrt.herokuapp.com/api/BusRoutes.json (backup API location)
To get the shape, need 2 requests:
http://miami-transit-api-gtfsrt.herokuapp.com/api/BusRouteShapesByRoute.json?RouteID=31&Dir=Northbound
http://miami-transit-api-gtfsrt.herokuapp.com/api/BusRouteShape.json?ShapeID=134996
The ShapeID can also be obtained by TripID:
http://miami-transit-api-gtfsrt.herokuapp.com/api/BusRouteShapesByTrip.json?TripID=3500274