ParentFull threadtidwall·Yes. That library has a flexible kNN method built in. https://pkg.go.dev/github.com/tidwall/rtree#RTree.NearbyView on HN