[JAVA-371] nearSphere method in QueryBuilder class Created: 03/Jun/11  Updated: 14/Nov/12  Resolved: 18/Apr/12

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 2.8.0

Type: Improvement Priority: Major - P3
Reporter: Damir Palinic Assignee: Bryan Reinero
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Hello guys,
.
I was wondering if it is possible to add 2 nearSphere() methods in QueryBuilder?

There are 2 near() methods there now:
near( double x , double y )
near( double x , double y , double maxDistance )

It would be cool to have following 2 methods as well:

public QueryBuilder nearSphere(double longitude, double latitude)
{
addOperand( "$nearSphere" , new Double[]

{ longitude , latitude }

);
return this;
}

public QueryBuilder nearSphere(double longitude, double latitude, double radius)
{
addOperand( "$nearSphere" , new Double[]

{ longitude , latitude, radius}

);
return this;
}

Thanks in advance,
Damir



 Comments   
Comment by Jeffrey Yemin [ 18/Jun/12 ]

Closing for 2.8.0 release.

Comment by Bryan Reinero [ 18/Apr/12 ]

github commit 1dfe32ab927abb7b208fe3bb8860cda1b4b58db6

Comment by Damir Palinic [ 22/Nov/11 ]

Any chances that this fix will be implemented in one of the future versions?

Generated at Thu Feb 08 08:52:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.