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

List all travel options between two stops in a timetable (no transfers) #6227

Open
AndersVarmy opened this issue Nov 5, 2024 · 7 comments
Open
Labels
Roadmap Create an issue and mention your organization in the title and tag with RoadMap to share your plan Skanetrafiken On skanetrafikens roadmap

Comments

@AndersVarmy
Copy link

AndersVarmy commented Nov 5, 2024

The need is to add more journey alternatives to the result even if they are slower.

@AndersVarmy AndersVarmy converted this from a draft issue Nov 5, 2024
@AndersVarmy AndersVarmy added the Skanetrafiken On skanetrafikens roadmap label Nov 5, 2024
@AndersVarmy
Copy link
Author

Skanetrafiken is working on a POC.

@AndersVarmy AndersVarmy added the Roadmap Create an issue and mention your organization in the title and tag with RoadMap to share your plan label Nov 5, 2024
@t2gran t2gran changed the title Add direct travel journeys to OTP response List all travel journeys between to stops in a timetable Nov 7, 2024
@t2gran t2gran changed the title List all travel journeys between to stops in a timetable List all travel options between to stops in a timetable (no transfers) Nov 7, 2024
@t2gran
Copy link
Member

t2gran commented Nov 7, 2024

Should this support lines where part of the line has a replacement service?
We can support one transfer, should we do that as an option?

@AndersVarmy AndersVarmy changed the title List all travel options between to stops in a timetable (no transfers) List all travel options between two stops in a timetable (no transfers) Nov 8, 2024
@miklcct
Copy link
Contributor

miklcct commented Nov 8, 2024

Should this support lines where part of the line has a replacement service? We can support one transfer, should we do that as an option?

I am following this. We have just encountered a situation where part of a trip is bustituted, and our software doesn't handle this relation and shows it as separate trips.

GTFS doesn't support this feature and I may need to discuss with our team to see if we want to add this feature and move our investment to NeTEx instead / submit a proposal to the GTFS specification.

I don't think our internal model in OpenTripPlanner supports this concept as well, where multiple physical trips are aggregated together.

@AndersVarmy
Copy link
Author

Should this support lines where part of the line has a replacement service? We can support one transfer, should we do that as an option?

I think my answer will be "yes" for both of your questions, but i'm not quite sure if I understand you correctly.
First of all, the reason that we focused on "no transfers" is that it seemed easier. But if we could add journeys with transfers also, that probably is even better.
I'm not sure what you mean with "part of the line has a replacement service"? If there is a journey between two stops I would say it doesn't matter if it is a replacement or original journey.

@AndersVarmy
Copy link
Author

Should this support lines where part of the line has a replacement service? We can support one transfer, should we do that as an option?

I am following this. We have just encountered a situation where part of a trip is bustituted, and our software doesn't handle this relation and shows it as separate trips.

GTFS doesn't support this feature and I may need to discuss with our team to see if we want to add this feature and move our investment to NeTEx instead / submit a proposal to the GTFS specification.

I don't think our internal model in OpenTripPlanner supports this concept as well, where multiple physical trips are aggregated together.

"bustituted"? Is that when a train is substituted by buses?

@miklcct
Copy link
Contributor

miklcct commented Nov 11, 2024

"Bustitute" / "bustitution" is a slang for rail replacement buses (substitution by buses).

@miklcct
Copy link
Contributor

miklcct commented Nov 18, 2024

I have just got a use case of this feature in our product.

Currently, if you have a leg, you can use nextLegs to fetch other options between the same two stations, even if they are slower / overtaken.

Unfortunately there isn't such an API to directly fetch legs between two stops / stations yet, which I believe is what this issue for. And I'll need such an API to handle the case if refetching a saved transit leg fails (for example, if the train is diverted with additional stops, or if the timetable is changed so the trip ID is changed), such that I can show options to the user to choose an alternative leg to complete his journey.

The API should receive:

  • from stop ID
  • to stop ID
  • whether the search is expanded to the whole station
  • transport modes
  • date / time
  • number of legs to return (probably needs to support paging as well)

And it should return a list of legs.

The actual implementation should be shared with nextLegs field in leg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Roadmap Create an issue and mention your organization in the title and tag with RoadMap to share your plan Skanetrafiken On skanetrafikens roadmap
Projects
Status: In Progress
Development

No branches or pull requests

3 participants