Skip to content

Allow GPS-exact routing (not just from junction to junction) #27 - #115

Merged
karussell merged 20 commits into
masterfrom
issue_27
Nov 12, 2013
Merged

karussell merged 20 commits into
masterfrom
issue_27

Conversation

@karussell

Copy link
Copy Markdown
Member

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.

karussell pushed a commit that referenced this pull request Nov 12, 2013
Allow GPS-exact routing (not just from junction to junction) #27
@karussell
karussell merged commit d7cf22c into master Nov 12, 2013
@karussell

Copy link
Copy Markdown
Member Author

If there are still problems with the new functionality please open a new issue.

@karussell
karussell deleted the issue_27 branch November 21, 2013 12:17
michaz pushed a commit that referenced this pull request Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow routing from arbitrary start and end coordinates

1 participant