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

Return more information regarding departures #300

Open
ialokim opened this issue Jan 11, 2020 · 2 comments
Open

Return more information regarding departures #300

ialokim opened this issue Jan 11, 2020 · 2 comments

Comments

@ialokim
Copy link
Contributor

ialokim commented Jan 11, 2020

In other public transport navigation apps, it is often possible to click on a line in the departures screen and see it's complete journey from start to end point.
How this is done under the hood is saving a trip id for each departures result and querying the API again providing this trip id in case of a click.
This is already supported by hafas-client and Navitia has also support for it using the Vehicle-journey endpoint.

Is this something you already thought about? I would like to look into this if you want me to do so and if you could give me some hints where I should start @schildbach.

@ialokim
Copy link
Contributor Author

ialokim commented Jan 12, 2020

Just for the record: hafas-client implements the querying in https://github.com/public-transport/hafas-client/blob/master/index.js#L341.

It seems they return a journey object similar to the normal trip query results.

@schildbach
Copy link
Owner

I've often thought about this, but never found the time to implement. On Hafas I think I've seen a separate endpoint just for that usecase.

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

No branches or pull requests

2 participants