Repository navigation
Conversation
added 14 commits
October 2, 2013 07:57
…ng edges, additional tests for that in AbstractRoutingAlgorithmTester; repairs #105
…ed looks unchanged for area saxony; measurement moved to using GraphHopper API and fastest + dijkstrabi for normal routing
This was referenced Oct 31, 2013
added 6 commits
November 3, 2013 21:05
karussell
pushed a commit
that referenced
this pull request
Nov 12, 2013
Allow GPS-exact routing (not just from junction to junction) #27
Member
Author
|
If there are still problems with the new functionality please open a new issue. |
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.
This pull request will fix #27 if ready.
There are several possibilities to get a GPS-exact routing working.
At the beginning I pre-calculated the possible start and end junctions (tower nodes), followed by an unchanged routing algorithm where a final post processing step would be required - like adding the required points to the path at the beginning and at the end. This would have been relative clean API, no performance overhead and more importantly: stateless, but the post processing was very complex especially if there would have been more than two points involved. See here: ade2e9e (Update: the next approach is not less tedious - especially because we want to make it working for multiple query results. So this first cleaner apprach is probably worth some reconsideration if we encounter problems for many query results)
The final approach which I'll take is the "virtual/phantom graph" - approach. Every query point turns into a junction (tower node). To make this thread safe I introduce a QueryGraph which is created per request and can take multiple points. There is still an API glitch where one needs to call algorithm.setGraph and locationIndex.findClosest(graph<-, lat, lon) but I think I can fix this as well in the next days. The downside of this approach is that the graph is then stateful (QueryGraph) and it is slower in theory as it uses a map within EdgeExplorer.setBaseNode, but the difference is very small and not measureable - at least for only two points.