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

Is adding support for the /trips (i.e. tripsByName()) endpoint planned? #7

Open
hg421 opened this issue Jan 9, 2025 · 1 comment
Open

Comments

@hg421
Copy link

hg421 commented Jan 9, 2025

As described in the readme, the /trips (i.e. tripsByName()) endpoint similar to db-hafas-client is not yet supported. Are there plans to implement it? Is it possible with new underlying APIs?

@traines-source
Copy link
Member

traines-source commented Jan 9, 2025

So far I have not found the corresponding endpoint in the DB APIs, because there does not seem to be a corresponding UI in either DB Navigator or bahn.de. If you find it, it shouldn't be a problem to implement it.
I found two other implementations that still work with train names:

  • bahnapp.online, unfortunately it's closed source so we have no idea which API it uses.
  • bahn.expert, haven't yet found the corresponding code to see which API it uses, maybe IRIS? EDIT: Might be RIS::Journeys, for which you need an API key, which marudor probably has. – Maybe you want to have a look. We could also add IRIS/whatever for tripsByName to db-vendo-client, since it uses a variety of API backends anyways, altough I'm not hyper stoked on that :D

In conclusion, for the time being, /trips can just be used with a trip id (trip()).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants