Y
Hacker News
new
|
ask
|
show
|
jobs
by
joshu
5707 days 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.