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

Feature Request: Multiple possible routes per trip #96

Open
zamirD123 opened this issue Jan 31, 2023 · 2 comments
Open

Feature Request: Multiple possible routes per trip #96

zamirD123 opened this issue Jan 31, 2023 · 2 comments

Comments

@zamirD123
Copy link

Hey everyone, thanks again for this awesome package!

There are usually 2-3 different alternatives to the same route when you plan a trip on Google Maps or some other public transit routing app/service. However, gtfs_route() only gives you one route per trip.

Does anyone know how these apps do that? Is there a way to implement it with the 'CSA' process behind the scenes?

@mpadge
Copy link
Member

mpadge commented Feb 1, 2023

The bad news: Nope, there is no way of calculating that at the moment.
The good news: That's only because that information is discarded before returning the single best route. It's all generated along the way, so i guess could be retained and returned with the result.

The main gtfs_route algorithm will soon be re-written (#71), and won't use the CSA algorithm anymore. That'll make it even easier to implement something like this. But before that happens: Did you have a particular use case in mind? It is likely to be a reasonable amount of work to implement this. I'd be potentially interested in doing it to help interesting research questions; less so if the aim was just to generate multiple choices for individual routing queries. So I'd definitely first be interested to hear what your use case might be? Thanks for asking!

@zamirD123
Copy link
Author

zamirD123 commented Feb 1, 2023 via email

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