-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/Build spatial index based on google::s2 #248
Conversation
// => for each line, its formid and all other ids | ||
// => calculate distance between fromid and all other ids | ||
// => sort result based on distance and write back to file | ||
package main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just put comments here, to be implemented.
Build failed with following information, didn't notice it on local, try to reproduce with docker.
update: I didn't met such error inside docker
May be not this command? update: got error information and find root cause
|
Here's the problem:
More in link: https://github.com/Telenav/osrm-backend/pull/248/checks?check_run_id=532257078 |
Thanks, found that immediately after dinner, hard to find root cause due to lake of energy :) |
Will change
|
Issue
#239
indexer
to build spatial index based onpoints
, implement a specified version ofindexer
based on google::s2nearbyQuery
for any given points2indexer
, it couldspatial index
withBuild()
, loads data from json, and iterate each points, find a group of cell id contains such point, in [minlevel, maxlevel] rangeDump
andLoad
function, could record pre-processing data to files, so next time just need load data back to re-build spatial informationqueryNearByPoints
, it will first find all cells covers query region, in [minlevel, maxlevel] range, then retrieves points data from those cells, you could go to here for more information: Research on usage of google::s2 #236 (comment)Tasklist