Skip to content

Commit 1f50122

Browse files
authored
feat: Add distance metric support for RTree neighbor queries (#141)
* feat: Add distance metric support for RTree neighbor queries Add pluggable distance metrics for RTree neighbor searches, enabling Euclidean, Haversine, and Spheroid distance calculations. This allows users to choose appropriate distance calculations for different coordinate systems (planar vs geographic). * fix cargo fmt * fix clippy fmt * Address PR review comments - Feature Flag Implementation (geo-types pattern) - Removed top-level re-exports from rtree/mod.rs - Removed redundant geo-types dependency - Removed duplicate axis_dist function (now in trait.rs) - Made entire distance module conditional on use-geo_0_31 feature - Trait architecture change: created SimpleDistanceMetric (no geo dependency) - Tests run successfully with and without use-geo_0_31 feature flag * remove the vincenty (Geodesic) and GRS80 distance metrics
1 parent dfd3de9 commit 1f50122

File tree

9 files changed

+1641
-312
lines changed

9 files changed

+1641
-312
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ target/
2525
# Added by cargo
2626

2727
/target
28+
29+
.idea/

0 commit comments

Comments
 (0)