Repository navigation
Conversation
…separate issue; no need for special EdgeFilter anymore; fixes #1525
Signed-off-by: easbar <[email protected]>
Maybe we can document this somewhere, e.g. in
Will do.
Good to keep this in mind, but probably shouldn't do this before #1447. |
Signed-off-by: easbar <[email protected]>
Signed-off-by: easbar <[email protected]>
I am not so sure about this. Even when we exclude loops in the OSM import there can still be loop shortcuts (for example the additional pillar node will be contracted right at the beginning, immediately creating a loop shortcut). The other thing I am a bit worried about is that I spent quite a bit of time to get CH work with loops and it might be a bad idea to remove the corresponding code and tests in case at a later time we would like to allow loops again. Is there any reason not to use the current version of |
|
Thanks!
Good idea!
Couldn't we somehow inject the tweaked EdgeFilter for these tests? Or how many tests will fail? (As those tests are still in git they wouldn't be 'lost'.) The only problem I have with this code in the default filter is that it feels a bit dirty (as it is not necessary now)
Uhm, yes. Unrelated & should be fixed. |
To make sure they are really preserved (and in master to make them easy to find), we could merge the turn cost branch with the tweaked DefaultEdgeFilter, then remove the tweak and also all failing tests. |
This is the real issue here, see be4e6cc#diff-094ce488919a6ffa3ad06adbc7df7213R409 There will always be loop shortcuts and the backward search can be blocked by them so no shortest path is found.
Yes, this is a good idea would be good to have these changes in one commit, but like I said the real problem is that the routing does not work without the changes in the filter at the moment even with the fixed OSM import. One possibility would be to apply the special condition in the filter only on loop-shortcuts, but this would probably be even dirtier ;) |
|
Btw the shortcut in this test is 'forward' because all shortcuts in edge-based CH are unidirectional (forward only) at the moment. Maybe (but just maybe, no idea atm) another solution would be to set all loop shortcuts fwd&bwd. |
Got it :) ... so yes, we need the special tweak in the EdgeFilter.
It will likely still break if we read properties in the wrong direction. Now I think this can be only fixed without the tweaked EdgeFilter with the more involved changes described above. |
|
@easbar Uhm, sorry, this is unsatisfying: I merged the PR via squashing to have just one commit and the commit contains "Signed-off-by: <name+email>" (as you can see via git log) but still your work does not appear via the icon. It looks like we have to do "Co-authored-by: <name+email>" instead, which is a bit unusual: |
|
Ok no worries :) |
|
it not generating 'Names' file after running the script. Please help, i have tried maps from different countries but same result. |
This PR is the minimal change to fix #1525 (problems with edge-based algorithms). The fix avoids loop-edges from the import side. It is still possible to create loops via the Java API e.g. to attach properties like currently done in reader-gtfs.
With this PR no change needs to be done in DefaultEdgeFilter like it was necessary for #1247.
Do we need an explicit test that the OSM import results in no loop-edges?
Please note, the changes uncovered a bug in the landmark algorithm regarding the QueryGraph, which will be fixed in a separate issue. And so the test was slightly modified so that the original situation for #1014 was kept.
The other possible fix for #1525 is quite involved. Still, if results of the current fix make too many problems elsewhere, we'll have to go the more complex way, which requires a few more things:
edgeIter.next()(note that the tried implementation in this PR has a bug if reverse=true from a previous edge state)