You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment the lookup of node ids via gps coordinates has the limitation that it would require lots of memory for world wide coverage as it is a quadtree of depth one (simple array), or if less memory is used for the index the precision is suboptimal.
Different requirements makes the new Location2NodesNtree a challenge:
should be precise and robust, i.e. should fetch exact matches as well as not so close nodes
should work for edges close to the query point, not only for nodes => use bresenham
should be fast to create
should work world wide => depth of the quadtree has to be bigger than 1
very memory efficient, e.g. do not store lat,lon instead use a graph-traversal as post-processing step to get the lat,lon for distance comparison. And remove nodes from an quadtree entry if the nodes' network (within the borders) is already represented from a different node. And the quadtree depth shouldn't be that big
querying should be fast => quadtree traversal and post processing should be fast
should work on Android and can be loaded from disc => store into a DataAccess (but one could use an in-memory quadtree with normal Java-references to construct such an on-disc index)
support to accept only edges/nodes for a specific vehicle
support LevelGraph -> do not index shortcuts + while searching do not include shortcuts for distance check - only for traversal. Also avoid problems if high-level nodes are disconnect from its lower-level nodes!
All points should be implemented in Location2NodesNtree now, except point 8 (vehicle filter) which follow soon. On Android we need to improve query performance.
Drawback of this index: off-road queries are more likely to fail as we do not yet use the same flood fill algorithm (to fill empty tiles) as in Location2IDQuadtree. Avoiding flood filling saves space and speeds up indexing. We could improve this by a partial flood filling.
Now this is configurable via osmreader.locationIndexHighResolution=500 where the number is the distance (in meter) for approximation search. To e.g. improve query time on Android lower this to 200
Activity
karussell commentedon Apr 2, 2013
All points should be implemented in Location2NodesNtree now, except point 8 (vehicle filter) which follow soon. On Android we need to improve query performance.
Drawback of this index: off-road queries are more likely to fail as we do not yet use the same flood fill algorithm (to fill empty tiles) as in Location2IDQuadtree. Avoiding flood filling saves space and speeds up indexing. We could improve this by a partial flood filling.
karussell commentedon May 10, 2013
Now this is configurable via osmreader.locationIndexHighResolution=500 where the number is the distance (in meter) for approximation search. To e.g. improve query time on Android lower this to 200
karussell commentedon May 17, 2013
Since this commit 8151aa0 we're now respecting the vehicle when searching for a close id, which fixes the only left problem (point 8)
Add bearings (#17)
Merge of navigation repository (#2071)