Repository navigation
Move DirectTransferAnalyzer logic into street module and parallelise it - #8312
leonardehrenfried wants to merge 6 commits into
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #8312 +/- ##
=============================================
+ Coverage 76.17% 76.21% +0.03%
- Complexity 24851 24866 +15
=============================================
Files 2658 2660 +2
Lines 93078 93122 +44
Branches 9288 9288
=============================================
+ Hits 70905 70969 +64
+ Misses 19034 19006 -28
- Partials 3139 3147 +8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
optionsome
left a comment
There was a problem hiding this comment.
I did not do the most thorough review since this is not the most important feature. It's a bit confusing that the feature is about transfers, but we don't actually use the transfers but rather just find random stops from stops. However, I can see how this approach might be needed to find the ones that we can't route to, but this also finds "transfers" that are not actually ever used (which might also still be somehow useful for fixing OSM problems).
| public StopDistance( | ||
| FeedScopedId from, | ||
| FeedScopedId to, | ||
| double directDistanc_m, |
Summary
@JohanEntur asked for
DirectTransferAnalyzerto stay in OTP, so instead of deleting it I moved its logic into the street module and removed its dependency onVertexLinkerand the routing layer.StopDistanceCalculatorAPI instreet.api.stopdistance(stop ids in,StopDistances out) withDefaultStopDistanceCalculatoras the implementation: a spatial index of stop vertices plus one street search per stop, starting at itsTransitStopVertex.DirectTransferAnalyzeranalyses the stops in parallel and logs progress withProgressTracker. Its runtime has dropped from 8 minutes to under 1 minute on the Norway graph. The issues it reports are unchanged.Results
I was a little sceptical about its usefulness but I has found some real mapping issues in Norway:
I think the limits are not well calibrated, but I leave this for Entur.
Issue
Ref #8081