Comments (2)
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:
- Get bus positions by route
- Get bus positions by stop
- Get bus timings by stop
- Get bus positions by long/lat (maybe unnecessary given the previous one but potentially useful)
from findsepta.
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:
- 1. Set up automatic querying of TransitViewAll
- 2. Build DB for storing the data on our server (Postgres?)
- 3. Build API in Flask, routing queries with SQLAlchemy
- 4. Switch our current app architecture to query from our own API instead of SEPTA's
- 5. Start on data cleaning script
from findsepta.
Related Issues (11)
- Switch backend to Flask
- Merge map-debug HOT 1
- Fix route lines so that they match the path of the vehicle
- Fix combobox on splash page
- Submit grant application HOT 2
- Use HTML markers for bus stops
- Check route before requests to septa
- Fix mobile styles
- Javascript polling fails in safari HOT 2
- Use long-polling or websockets HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from findsepta.