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

Fetching eta of specific stops #5

Open
Mantou1233 opened this issue Aug 21, 2024 · 2 comments
Open

Fetching eta of specific stops #5

Mantou1233 opened this issue Aug 21, 2024 · 2 comments

Comments

@Mantou1233
Copy link

how should i fetch eta of a certain stop?

@chunlaw
Copy link
Member

chunlaw commented Aug 21, 2024

You may refer to the doc https://hk-bus-eta.hkbus.app/.

Currently, you may need to iterate the db to obtain all routes passing the specific stop, and fetch ETA for each route.

@Mantou1233
Copy link
Author

for the docs it says BusDb, but on the actual package it was EtaDb ...??
also you have to provide holidays and serviceDayMap for some reason

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

2 participants