-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add search window to travel time API #4911
Add search window to travel time API #4911
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #4911 +/- ##
=============================================
- Coverage 63.09% 62.92% -0.18%
+ Complexity 13407 13277 -130
=============================================
Files 1672 1664 -8
Lines 66577 66434 -143
Branches 7259 7250 -9
=============================================
- Hits 42009 41801 -208
- Misses 22168 22251 +83
+ Partials 2400 2382 -18
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
f12811d
to
7c45bb1
Compare
Hi. Just a quick question. I saw that @t2gran added 2 milestones to this PR. does this mean this feature is gonna be shipped with the next version? |
Unfortunately it doesn't mean that. @t2gran has just reapplied all labels after the 2.4 release. AFAIK there is nobody working on this. |
The process we follow is maybe a bit unclear, but a result of "least work" and 95% ok. The process:
If someone show an interest in a PR, then it is also more likely that we fix it. |
Ah OK, thanks for explaining. I am really interested in this PR and this functionality as it makes OTP usable for my use case. The problem with the current isochrone implementation is that it doesn't give me a good overview of the reachable area in general but really just looks at the precise time that I specify. So the results can vary a lot depending on if I query for 8:00 or 8:10. I actually checked out the branch by @hannesj to test the new timeWindow parameter and built OTP locally on my machine. Works like a charm for me, so therefore I'm relatively keen to get this functionality into the official release. I'm unfortunately not a Java programmer but could I maybe help with something in this PR to make it mergeable? I'm not really sure what's missing... |
There are some Swedish developers working for Skanetrafiken that you might be able to convince to "adopt" this feature. |
Thanks for the tip. I still wonder what would be missing to be able to merge this PR into the main codebase. If you could give me a point to what's outstanding to be mergeable, I could adopt this PR for sure :) |
Hello @t2gran you commented in the initial PR
Could you outline what you would like to be implemented differently for this one? Maybe I could have a look. |
I toke a quick look and I am unsure if this can be done without changing Raptor. Any changes to Raptor would consume a lot of my time, so I am not so sure. This is a Sandbox feature and we do not allow for it to make changes to Raptor, witch make the code more complicated or degrade the performance. There are other tools like r5 that does this better. We are working on several changes to Raptor, so it might be easier to fix this when those are done (heuristics for pass-through search and better cost heuristics). |
Hi. After your last comment I had a look at R5 but it's (for me at least) pretty impossible to use. I mean it's not that surprising as it's not meant to be an OpenSource project... They really want to push people in the commercial offering. One more suggestion to make this sandbox feature a bit more usable: |
All of what you say makes sense but the people who have the skills to get something like that through code review are pretty rare, and all of them are very busy. So it's not that we don't want to, but a priority thing. |
I think Adding the searchWindow to this will increase the usefulness, because you get the best-time within the depature searchWindow, not just if you leave at a given time. For example: departure-time: 12:00, then you board a bus 12:02, arrive at train station 12:20, WAIT 40 min, board train 13:00. If you instead use a searchWindow you take a later bus 12:32 arrive at 12:50, and board the same train. The trip is now 30 faster, just because of the reduction in wait time. To compensate for this, I think the current isochrone uses the raptor search witch remove wait-time. This of cause, have other problems, like being too optimistic. After fixing the heuristics this become easier to fix. I disagree about r5. r5 is written by the same people who first wrote OTP. To implement Raptor in OTP I set up r5, and ported the r5 raptor implementation into OTP. It takes fare less time to learn r5, than to implement this in OTP. |
Summary
Extracted from #4906
Contains changes required in RAPTOR for extracting durations from stop arrivals.