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

Handle stop type - bus or tram #7

Open
PiotrKozimor opened this issue Apr 3, 2021 · 0 comments
Open

Handle stop type - bus or tram #7

PiotrKozimor opened this issue Apr 3, 2021 · 0 comments

Comments

@PiotrKozimor
Copy link
Owner

PiotrKozimor commented Apr 3, 2021

When stops are updated via stopsctl, bus and tram sets in Redis shall be created. Each set shall contain ids of stop that were queried from each endpoint. Once departures from stop are requested these sets shall be consumed to see which endpoints must be queried. SISMEMBER shall be used which has O(1) complexity. This will allow to avoid querying endpoint which will always return 404 (stop not found).

@PiotrKozimor PiotrKozimor changed the title Handle stop tt Handle stop type - bus or tram Apr 3, 2021
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

1 participant