Repository navigation
Conversation
Member
Author
|
Oops, perhaps we have to tell Dijkstra not to allocate big maps for a small search (same as with MapMatching a year ago). |
Member
Author
|
Btw, this is more important than it may look: Being able to do the right thing when no landmark distance is available for a node (also for other reasons than because it is virtual) is an ingredient of things to come, like CH-ALT. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I think this was all about finding the closest non-virtual node to the destination node, i.e. with Dijkstra, instead of guessing. Actually, it's less code than the workaround.
Correcting for the edge length is not necessary for correctness, I think [citation needed].And I'm sure it's not necessary for the current nodev(we can just return 0 if it's virtual*). If anything, something has to be done for the destination node (aorb),but so far I don't see anything failing.*) That shouldn't be a performance problem. It should just mean that the algorithm behaves like Dijkstra (approximation 0) until it has expanded the virtual edges around
aandb, and when it finds virtual edges on the way, it should just "explode" into them before doing anything else. Seems safe.