<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:07 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-371] nearSphere method in QueryBuilder class</title>
                <link>https://jira.mongodb.org/browse/JAVA-371</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Hello guys, &lt;br/&gt;
. &lt;br/&gt;
I was wondering if it is possible to add 2 nearSphere() methods in QueryBuilder?&lt;/p&gt;

&lt;p&gt;There are 2 near() methods there now: &lt;br/&gt;
near( double x , double y  ) &lt;br/&gt;
near( double x , double y , double maxDistance ) &lt;/p&gt;

&lt;p&gt;It would be cool to have following 2 methods as well: &lt;/p&gt;

&lt;p&gt;public QueryBuilder nearSphere(double longitude, double latitude) &lt;br/&gt;
 { &lt;br/&gt;
   addOperand( &quot;$nearSphere&quot; , new Double[]&lt;/p&gt;
{ longitude , latitude }
&lt;p&gt; ); &lt;br/&gt;
   return this; &lt;br/&gt;
} &lt;/p&gt;

&lt;p&gt;public QueryBuilder nearSphere(double longitude, double latitude, double radius) &lt;br/&gt;
{ &lt;br/&gt;
   addOperand( &quot;$nearSphere&quot; , new Double[]&lt;/p&gt;
{ longitude , latitude, radius}
&lt;p&gt; ); &lt;br/&gt;
   return this; &lt;br/&gt;
} &lt;/p&gt;

&lt;p&gt;Thanks in advance, &lt;br/&gt;
Damir&lt;/p&gt;</description>
                <environment></environment>
        <key id="17894">JAVA-371</key>
            <summary>nearSphere method in QueryBuilder class</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="bryan.reinero">Bryan Reinero</assignee>
                                    <reporter username="dpalinic">Damir Palinic</reporter>
                        <labels>
                    </labels>
                <created>Fri, 3 Jun 2011 23:36:05 +0000</created>
                <updated>Wed, 14 Nov 2012 00:40:08 +0000</updated>
                            <resolved>Wed, 18 Apr 2012 19:58:55 +0000</resolved>
                                                    <fixVersion>2.8.0</fixVersion>
                                    <component>API</component>
                                        <votes>1</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="134054" author="jeff.yemin" created="Mon, 18 Jun 2012 19:36:11 +0000"  >&lt;p&gt;Closing for 2.8.0 release.&lt;/p&gt;</comment>
                            <comment id="111315" author="bryan.reinero@10gen.com" created="Wed, 18 Apr 2012 19:29:15 +0000"  >&lt;p&gt;github commit 1dfe32ab927abb7b208fe3bb8860cda1b4b58db6&lt;/p&gt;</comment>
                            <comment id="68204" author="dpalinic" created="Tue, 22 Nov 2011 13:49:12 +0000"  >&lt;p&gt;Any chances that this fix will be implemented in one of the future versions?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhbzz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14744</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>