{"id":58508,"library":"rstar","title":"rstar","description":"An R*-tree spatial index for efficient nearest neighbor and range queries.","status":"active","version":"0.13.0","language":"rust","source_language":null,"source_url":"https://github.com/georust/rstar","tags":["spatial","index","r-tree","geometry","nearest-neighbor"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nrstar = \"0.13.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add rstar","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"RTree","correct":"use rstar::RTree;"}],"quickstart":{"code":"use rstar::RTree;\nuse rstar::primitives::Point2D;\n\nfn main() {\n    let mut tree = RTree::new();\n    tree.insert(Point2D::new(0.0, 0.0));\n    tree.insert(Point2D::new(1.0, 1.0));\n    let nearest = tree.nearest_neighbor(&Point2D::new(0.5, 0.5));\n    println!(\"Nearest: {:?}\", nearest);\n}","lang":"rust","description":"Inserts points into an RTree and finds the nearest neighbor."},"warnings":[],"env_vars":null,"search_vec":"'effici':8 'geometri':19 'index':6,15 'nearest':9,21 'nearest-neighbor':20 'neighbor':10,22 'queri':13 'r':3,17 'r-tree':16 'rang':12 'rstar':1 'spatial':5,14 'tree':4,18","created_at":"2026-06-16T16:26:23.561254+00:00","updated_at":"2026-06-16T16:26:23.561254+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/georust/rstar","github":"https://github.com/georust/rstar","docs":"https://docs.rs/rstar/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}