Coder Social home page Coder Social logo

traveller's People

Contributors

lauraaubin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

traveller's Issues

Better estimates with bus proximity and schedule

When a bus is scheduled to arrive and it starts very close, it is very likely that this scheduled time is correct. For example, if the bus starts 2 stops before and is scheduled to arrive in 6 minutes, then it is safe to assume that this bus will spawn very shortly and arrive on time.

Lets make it so that we can estimate when a scheduled time has a higher probability of being correct.

i.e, the bus route 5 from Elgin and busses that start at Carleton

Busses on GPS after scheduled time not being recognized

If a bus is on GPS but comes after a scheduled time, the GPS bus is not being recognized. For example,

  • Bus in 8 minutes on schedule
  • Bus in 20 minutes on GPS
  • Bus in 35 minutes on schedule

The API returns -1, 0.94, -1 for the ordering of these busses. Since we are only looking at the first API response, we are only reading the first scheduled bus and not checking if there is even one on GPS.

Possible solution

Should look into parsing the whole XML response instead of just the first entry.

Whiteboarding

If there are NO GPS busses, return the first entry.
If there is A GPS bus in the set of three, return the first GPS bus entry.
If they are ALL GPS, return the first entry.

Current implementation: only returning the first entry no matter what.

What is changed: account for the middle case when there is a GPS bus in a collection of other scheduled busses.

Why is it important to keep track of the other cases? When implementing this fix, make sure not to break the current implementation.

Prompt for text entry

Eliminate hardcoding the script and create a form that gathers necessary information from the user.

Information includes, and is not limited to:

  • OC Transpo API ID and key
  • Weekly schedule or link to Google calendar
  • Manual way of checking bus activity

Location-based recommendations

Determine where you are relative to your daily schedule and provide updated bus tracking based on relative bus stops and general direction of next travel.

i.e, if I am at work, provide bus plans for going home. If I go to Carleton, provide bus plans for going back to work or home depending on the time of day.

Where am I going?

  • Sync with Google calendar
  • Write up a schedule within the plugin

What bus do I want to take?

  • Google API for best directions
  • Write up a schedule that includes busses

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.