Registry / utility / tidwall-rtree

tidwall-rtree

JSON →
library1.10.0gogounverified

RTree is a 2D R-tree implementation for spatial indexing and nearest neighbor searches.

go get github.com/tidwall/rtree
INSTALL
IMPORT
SIG · TIDWALL-RTREE
T
tidwall-rtree
utilitygov1.10.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rtree
github.com/tidwall/rtree

Creates an R-tree, inserts a point, and searches within a bounding box.

package main import ( "fmt" "github.com/tidwall/rtree" ) func main() { tr := rtree.New[string]() tr.Insert([2]float64{1, 1}, [2]float64{2, 2}, "point") fmt.Println(tr.Search([2]float64{0, 0}, [2]float64{3, 3})) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.10.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources