Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
joshu
· 16y ago · 0 comments
Use tiles.
Comments
[–]
bravo_sierra
16y ago
For what? How?
[–]
joshu
OP
16y ago
Hash the points into large tiles. Only calculate the nearby tiles, then find the items that are in the list of tiles (which is faster, due to being indexed.) Then use Haversine or whatever to filter.