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

Via-search - pass-through #4887

Open
10 of 12 tasks
BredeD opened this issue Feb 24, 2023 · 4 comments
Open
10 of 12 tasks

Via-search - pass-through #4887

BredeD opened this issue Feb 24, 2023 · 4 comments
Labels
Entur On Entur Roadmap HSL Helsinki Regional Transport Authority Roadmap Create an issue and mention your organization in the title and tag with RoadMap to share your plan Skanetrafiken On skanetrafikens roadmap

Comments

@BredeD
Copy link
Contributor

BredeD commented Feb 24, 2023

  • The journeys in the response always pass through the via point. It is possible to change vehicles at the via point, but it’s not necessary.

  • There is no given waiting time at the via point.

  • The via point is a list of points. What it represents is developed in two iterations:

    Iteration 1:

    • stopplace (station)
    • quay (stop)

    Iteration 2:

    • group of stopplaces
    • multimodal stopplace
  • It shall be possible to use three via points, because it is possible to store the numbers 0-3, in two bits.

  • The request is a normal request with the via points to use added. This means that the via functionality shall be possible to combine with for instance different types of filters.

  • The same request parameters are used before and after the via point.

  • The response is the same as the response of a normal request, meaning that no information about the via points is included.

  • Response time should not be a lot higher for searches with via points. Response time for searches without via points should not be affected at all.

Use cases:

  • Selling a ticket for a journey passing a specific stop.

  • Restricting the journey to a result that is slower, but pass through a specific stop.

@BredeD BredeD added this to Roadmap Feb 24, 2023
@BredeD BredeD converted this from a draft issue Feb 24, 2023
@BredeD BredeD added Entur On Entur Roadmap Roadmap Create an issue and mention your organization in the title and tag with RoadMap to share your plan Skanetrafiken On skanetrafikens roadmap labels Feb 24, 2023
@BredeD BredeD removed this from Roadmap Feb 24, 2023
@t2gran t2gran changed the title Via search Via search - pass trough May 4, 2023
@jtorin
Copy link
Contributor

jtorin commented May 10, 2023

Tasklist:

  • Raptor integration points.
    • C2 values storage data structure
      • Design
      • Test performance (BitSet vs HashSet)
      • Map from API request to this structure
    • Increment/set the C2 value.
    • Check in the destination that we have visited all via-points.
    • Inject a Pareto-function to Raptor.
    • Unit tests.
  • Adapt Optimized Transfers
  • Design and Implement API and connect to Raptor
    • REST API
    • Transmodel GraphQL API
  • Manual system testing (performance)
  • Evaluate the heuristic function

@ravolka ravolka added the HSL Helsinki Regional Transport Authority label Sep 4, 2023
@jtorin jtorin changed the title Via search - pass trough Via search - pass-trough Nov 7, 2023
@jtorin jtorin changed the title Via search - pass-trough Via search - pass-through Nov 7, 2023
@jtorin jtorin changed the title Via search - pass-through Via-search - pass-through Nov 7, 2023
@t2gran
Copy link
Member

t2gran commented Mar 6, 2024

The via-search is a bit unusable/hard to use. So, instead we could extend the pass-through-point feature with:

  • force a visiting the location, either by boarding or alighting at the point.
  • Allow for a minimum-wait-time at each pass-through-point. Any slack (board/alight) will be in addition to the minimum-wait-time.

@t2gran
Copy link
Member

t2gran commented Mar 6, 2024

I check off the boxes witch is implemented so fare.

@t2gran
Copy link
Member

t2gran commented Oct 10, 2024

After the #6084, there are still a few smaller things witch should be implemented:

  • support for coordinate via locations. This is implemented in Raptor, but there is no module test for it. To implement this "transfers" must be generated between the to Raptor searches. To find all transfer, find the paths for all stops nearby and put all pair of them together to form a transfer (stop A -> coordinate -> stop B).
  • Refactor Raptor passthrough to use the chaning feature. This will allow us to use the pass-through with transit-group-priority and also heuristics. To do this Raptor must support starting a journey on-board witch is useful in other use-cases as well. When this is done, we can remove the existing pass-through implementation.
  • Mixing visit-via and passthrough-via. There is two ways to do it, either by using the existing pass-through (messy setup) or doing the above first, and we will get it for free.
  • Enable the heuristics for pass-through.
  • Add support to GTFS API. @leonardehrenfried Will add this in this PR.
  • Add support to Debug UI
  • Remove relaxCostAtDestination
  • Add support for via in AStar (direct-street)
  • Add information in response for via? There is no tagging for via point in the path/itinerary. This can create problems in e.g. TransferOptimizer.
  • Preserve via results in OptimizedTransfer - this is an existing bug with pass-through as well.

@BredeD BredeD moved this to In Progress in Roadmap Oct 10, 2024
@BredeD BredeD added this to Roadmap Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Entur On Entur Roadmap HSL Helsinki Regional Transport Authority 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

4 participants