-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ETA's, Formating #25
ETA's, Formating #25
Conversation
Added optional return types, removed None comparison with == and some redundant parentheses. Began testing on live timing. Added getStopById to Routes and Systems for use with live timing.
Vehicle getNextStop() and getEtas() use 3rd party API to get stops and times. Stop getNextVehicle() and getEtas() gets vehicles and times.
Thanks for the Pull Request! Could you split Caching (#14 ) as a separate PR? It's a feature that requires further testing and isn't quite ready to be released with The formatting and ETA stuff look great at a glance! |
Alright I have removed caching to another pull, I had originally implemented that because my eta methods were taking forever due to repeat calls to get methods. Eta's now come straight from Passio, I don't know if the ( I feel like there's a better solution for how I generate the unix timestamps as there are tons of edge cases to consider. The |
It looks like With regards to the If we want to add a list attribute of |
You're right, I attend a university that uses this system and still forgot that a stop can have multiple routes. So we should really be looking at With the use of I also apologize if I haven't followed contribution conventions, I'm new to the process. |
No worries, I appreciate the help! The What was the intended purpose of your I don't think getting a vehicle's next stop is natively supported by PassioGo's API, but it doesn't seem to be impossible. Feel free to open an issue for it! I would greatly appreciate it if you could add docstrings to as many of the new functions you're writing to make collaboration easier. Thanks! |
To confirm, your idea for |
As of right now, it's not necessary to have the We could make |
Yeah I didn't think so either, I just wanted to make sure I understood. I'll add the Boolean argument soon. |
Given that If the intent is to check whether a stop exists, a user could simply check Let me know what your thinking behind this was! |
To be specific, in my testing with If we'd like to remove the duplicate until it can be more useful that works, or if you'd rather scrap it permanently we can. This is also the case with |
I think that's a very good idea but let's move it to the caching branch as that is its primary purpose. |
Take a look at what I've worked on and let me know what you think. I did implement that other API for the ETA's because I couldn't figure out where he was getting them from. I need to monitor the busses on PassioGo and check them against these estimates sometime. Docstrings for what I added will need to be added in the future.