d3-quadtree
d3-quadtree copied to clipboard
knn?
See https://observablehq.com/@llb4ll/k-nearest-neighbor-search-using-d3-quadtrees
This would be awesome to have an API for.
Related API https://github.com/mourner/flatbush
index.neighbors(x, y[, maxResults, maxDistance, filterFn])