Code Monkey home page Code Monkey logo

findsepta's People

Contributors

jeancochrane avatar kalilsn avatar

Watchers

 avatar  avatar  avatar

findsepta's Issues

Check route before requests to septa

Not super high priority, but we should probably be testing that is in the list of routes before sending it along to SEPTA. Could be a security problem in a slightly different program (making a request from unsanitized user input) and should definitely throw an exception instead of getting an error from SEPTA.

See line 30 of app.py

Fix route lines so that they match the path of the vehicle

Unfortunately, the route line information served by SEPTA isn't contiguous, so we can't model the movement of vehicles along their route. Once the map debugger is up and running we should try to clean these up and make them useable.

Use HTML markers for bus stops

Right now the hover effect on the bus stops is done through the Mapbox api and the mouseMove event โ€“ could be replaced with CSS (:hover styling) and a custom marker for both performance and customization reasons. The cursors can also be changed to pointers via CSS instead of JS, over both the buses and the stops.

Javascript polling fails in safari

Bus data doesn't update in Safari! Opening the debugger shows javascript throwing an error "Object.values is not a function" โ€“ because it's not supported in Safari.

For reference:
Object.values

Fix combobox on splash page

Combobox currently has a bug where if you don't manually select the suggested route from the drop-down menu before sending the form (either by hitting "Find SEPTA" or the return key) it sends a request for the default route (2). Not the end of the world, but it makes for unintuitive UX.

Merge map-debug

Map debugger should probably be its own separate page, routed through app.py. (Potentially a good standalone service?)

Fix mobile styles

Weird spacing between combobox and button. Button should be centered or on the right.

screen shot 2016-10-22 at 8 28 56 am

Github link disappears at this width but there's plenty of room.

screen shot 2016-10-22 at 8 28 49 am

About/github icons are outside of their parent container.

screen shot 2016-10-22 at 8 28 13 am

This one's just a mess ๐Ÿ™ƒ๐Ÿ™ƒ๐Ÿ™ƒ

screen shot 2016-10-22 at 8 27 53 am

Use long-polling or websockets

Rather than requesting new data every 5 seconds, we could consider opening a request to the server that will only be completed if the data changes (and otherwise will time out and be repeated by the client). Here's a guide to doing that with bottle.

Alternatively, we could switch to node.js for the backend and use socket.io to update via websockets.

Serve transit data through our own API

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

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.