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

db-rest stations search: fall back to HAFAS #1

Open
HMABUHABIB opened this issue Nov 1, 2019 · 2 comments
Open

db-rest stations search: fall back to HAFAS #1

HMABUHABIB opened this issue Nov 1, 2019 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@HMABUHABIB
Copy link

I'm not able to get the train station id for the local train station
it's working https://2.db.transport.rest/stations?query=bielefeld
Not working https://2.db.transport.rest/stations?query=bielefeld Lohmannshof
it was working last week can you please check it

@derhuerst
Copy link
Member

db-stations, the underlying data source for the stations search, doesn't contain it anymore:

npm install db-stations
cat node_modules/db-stations/full.ndjson | jq .name | grep -i bielefeld
Bielefeld Ost
Bielefeld Hbf
Brake (b Bielefeld)
Steinhagen (Westf) Bielefelder Straße
Bielefeld-Senne

db-stations only contains DB-operated stations, while their DB HAFAS endpoint knows many other stations operated by other providers. In the mentioned case the API should fall back to the HAFAS endpoint to find it.

@derhuerst derhuerst added bug Something isn't working help wanted Extra attention is needed labels Nov 1, 2019
@derhuerst
Copy link
Member

cc @juliuste, In case he's taking of this anyways…

@derhuerst derhuerst changed the title Train satoin id can't find "Bielefeld Lohmannshof" by station id Nov 19, 2019
@derhuerst derhuerst changed the title can't find "Bielefeld Lohmannshof" by station id db-rest stations search: fall back to HAFAS Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Development

No branches or pull requests

2 participants