-
Notifications
You must be signed in to change notification settings - Fork 3
Description
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