Skip to content

Commit 2992732

Browse files
Copilotanidotnet
andcommitted
Update GeoNearFilter JavaDoc to reflect implemented two-pass execution
Changed "future enhancement" language to describe the current implementation. Two-pass execution was implemented in commit 72143db and is now working. Co-authored-by: anidotnet <696662+anidotnet@users.noreply.github.com>
1 parent 4b42c31 commit 2992732

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

nitrite-spatial/src/main/java/org/dizitart/no2/spatial/GeoNearFilter.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@
3636
*
3737
* <p><strong>Distance Units:</strong> The distance parameter must be in meters.</p>
3838
*
39-
* <p><strong>Accuracy Note:</strong> This filter uses a bounding box approximation
40-
* for the R-tree index search, which may return some false positives (points
41-
* slightly outside the geodesic circle but within its bounding box). A future
42-
* enhancement will add two-pass filtering for exact results.</p>
39+
* <p><strong>Accuracy:</strong> This filter uses two-pass query execution for accurate results:
40+
* Phase 1 performs a fast R-tree bounding box search, and Phase 2 refines results using
41+
* precise JTS geometric operations to eliminate false positives.</p>
4342
*
4443
* @since 4.3.3
4544
* @author Anindya Chatterjee

0 commit comments

Comments
 (0)