Code Monkey home page Code Monkey logo

Comments (2)

kalilsn avatar kalilsn commented on June 10, 2024

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.

jeancochrane avatar jeancochrane commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.