Skip to content
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

Forecasts for both directions #1

Closed
volives opened this issue Apr 13, 2018 · 2 comments
Closed

Forecasts for both directions #1

volives opened this issue Apr 13, 2018 · 2 comments

Comments

@volives
Copy link

volives commented Apr 13, 2018

How can one request bus departures from a given stopId (bus direction)?

The resquest
/api/v1/departures/{node-id}
seems to return the results for an arbitrary direction for that node-id.

Thank you!

@thordy
Copy link

thordy commented Apr 16, 2018

Each node only returns buses going in one direction

e.g.

# Nova Kinosenter towards Downtown
https://atbapi.tar.io/api/v1/departures/16011022

# Nova Kinosenter from Downtown
https://atbapi.tar.io/api/v1/departures/16010022

Notice how the nodeIds are almost the same 16011022 vs 16010022, this is how most stops behave, where one is towards downtown, and the other out of downtown

@volives
Copy link
Author

volives commented Apr 16, 2018

Great. Yes, that was my mistake. Thank you!

@mpolden mpolden closed this as completed Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants