jeancochrane / findsepta

🚎 A web app for geolocating SEPTA buses and trolleys in Philadelphia.
https://findsepta.org
1 stars 1 forks source link

Serve transit data through our own API #2

Open jeancochrane opened 8 years ago

jeancochrane commented 8 years ago

Something like this. We need to:

  1. Retrieve SEPTA real-time data from our back-end
  2. Clean it; test for mislabelled and unlabelled vehicles, as well as vehicles that are off their routes
  3. Serve data through an API
kalilsn commented 8 years ago

I think we should have one process running that periodically (tbd how often) retrieves data from here, then does our cleaning, and stores it in an SQL database. Then the api will mostly just be sql queries – and as long as our database is designed to be pretty universal, we should be able to reimplement this for other cities without altering anything but the process that is pulling data from SEPTA/its counterpart.

Ideas for api endpoints:

jeancochrane commented 8 years ago

Agreed! I'd also like to serve fixed routelines as a separate API, too.

Our cleaning script will most likely be the biggest headache here, and might even warrant its own issue thread. For now, let's focus on setting up a mirror API on our server, and then work on cleaning the data after we've shifted our architecture. Here's my suggested task list: