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

implement nearby request #42

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

sn0opy
Copy link
Contributor

@sn0opy sn0opy commented Apr 5, 2024

I have implemented the nearby request which returns a list of stations ordered from closest to furthest

Somewhat fixes the following issue or at least makes it easier to implement

We could think about implementing a different return type for this endpoint to also include the distance. HaFas seems to return the distance in meters as well via data.res["locL"][i]["dist"] and according to public-transport/hafas-client probably even the walking duration via data.res["locL"][i]["dur"] in whatever format

@leona-ya
Copy link
Member

leona-ya commented Jun 9, 2024

Thanks!

@leona-ya leona-ya merged commit d838b33 into FahrplanDatenGarten:main Jun 9, 2024
@sn0opy sn0opy deleted the feature/nearby_request branch June 13, 2024 09:33
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

Successfully merging this pull request may close these issues.

None yet

2 participants