lauraaubin / traveller Goto Github PK
View Code? Open in Web Editor NEWAn OC Transpo GPS bus scheduler for your MAC OS X menu bar
License: MIT License
An OC Transpo GPS bus scheduler for your MAC OS X menu bar
License: MIT License
i.e, ๐5 arriving in 5 minutes
then on inspect, Heading home
.
Also, could specify the direction of the bus: 7 St Laurent going home
This can be used publicly and will be published with this project when completed.
For example, if we are looking at the 104 that stops at St-Laurent 3025
, then we get responses for both directions it runs.
We should know the difference between busses that are "expected" to arrive, and those actually on the way. The API just returns a value for AdjustedScheduledTime
.
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
If a bus is on GPS but comes after a scheduled time, the GPS bus is not being recognized. For example,
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.
Should look into parsing the whole XML response instead of just the first entry.
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.
Eliminate hardcoding the script and create a form that gathers necessary information from the user.
Information includes, and is not limited to:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.