<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:08:00 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>[DOCS-13514] Does $near 2d legacy use degrees or radians as distance measure? </title>
                <link>https://jira.mongodb.org/browse/DOCS-13514</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;h2&gt;&lt;a name=&quot;Description&quot;&gt;&lt;/a&gt;Description&lt;/h2&gt;
&lt;p&gt;In the below link, I found that $near 2d legacy use radians as distance measure.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/query/near/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/operator/query/near/&lt;/a&gt;&lt;/p&gt;

{ $near: [ &amp;lt;x&amp;gt;, &amp;lt;y&amp;gt; ],

$maxDistance: &amp;lt;distance in radians&amp;gt; }

&lt;p&gt;However, when I tested queries in the mongo shell, I got confused because it seems like $near 2d legacy use degrees as distance measure.&lt;/p&gt;

&lt;p&gt;1. use degrees&lt;/p&gt;

&lt;p&gt;db.restaurants.find({ &apos;address.coord&apos; : &lt;/p&gt;
{ $near : [ -73.9, 40.7 ], $maxDistance : 2/111.1 }
&lt;p&gt; } ) #degrees&lt;/p&gt;

&lt;p&gt;2. use radians&lt;/p&gt;

&lt;p&gt;db.restaurants.find({ &apos;address.coord&apos; : &lt;/p&gt;
{ $near : [ -73.9, 40.7 ], $maxDistance : 2/6378.1 }
&lt;p&gt; } ) #radians&lt;/p&gt;

&lt;p&gt;I checked that the first query with degrees gave correct answer, not the second one with radians.&lt;/p&gt;

&lt;p&gt;Is there anyone who can solve my problem?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;h2&gt;&lt;a name=&quot;Scopeofchanges&quot;&gt;&lt;/a&gt;Scope of changes&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;ImpacttoOtherDocs&quot;&gt;&lt;/a&gt;Impact to Other Docs&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;MVP%28WorkandDate%29&quot;&gt;&lt;/a&gt;MVP (Work and Date)&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;Resources%28ScopeorDesignDocs%2CInvision%2Cetc.%29&quot;&gt;&lt;/a&gt;Resources (Scope or Design Docs, Invision, etc.)&lt;/h2&gt;
</description>
                <environment>windows 10</environment>
        <key id="1273936">DOCS-13514</key>
            <summary>Does $near 2d legacy use degrees or radians as distance measure? </summary>
                <type id="12510" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Feedback</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="13203">Gone away</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="johnjhkim@dbs.snu.ac.kr">Juhun Kim</reporter>
                        <labels>
                            <label>docs-query</label>
                    </labels>
                <created>Sun, 15 Mar 2020 01:47:11 +0000</created>
                <updated>Mon, 30 Oct 2023 22:38:19 +0000</updated>
                            <resolved>Fri, 3 Feb 2023 14:11:49 +0000</resolved>
                                    <version>4.2.3</version>
                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>Server</component>
                        <due></due>
                            <votes>2</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="5165542" author="JIRAUSER1270801" created="Fri, 3 Feb 2023 14:11:25 +0000"  >&lt;p&gt;Closing per &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=sarah.olson%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;sarah.olson@mongodb.com&quot;&gt;sarah.olson@mongodb.com&lt;/a&gt; comment above. Please feel free to open with a new comment!&lt;/p&gt;</comment>
                            <comment id="5146632" author="JIRAUSER1264463" created="Fri, 27 Jan 2023 17:50:27 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=johnjhkim%40dbs.snu.ac.kr&quot; class=&quot;user-hover&quot; rel=&quot;johnjhkim@dbs.snu.ac.kr&quot;&gt;johnjhkim@dbs.snu.ac.kr&lt;/a&gt;, just following up on this ticket. We&apos;d like to either resolve or close this one. If we don&apos;t hear back by February 3, we&apos;ll close this out. Thanks for any feedback or updates!&lt;/p&gt;</comment>
                            <comment id="5127835" author="JIRAUSER1264464" created="Fri, 20 Jan 2023 19:02:25 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=johnjhkim%40dbs.snu.ac.kr&quot; class=&quot;user-hover&quot; rel=&quot;johnjhkim@dbs.snu.ac.kr&quot;&gt;johnjhkim@dbs.snu.ac.kr&lt;/a&gt;, did you ever get an answer here? Let me know - otherwise we will close this ticket due to inactivity.&#160;&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Ashley&lt;/p&gt;</comment>
                            <comment id="2981662" author="ravind.kumar" created="Mon, 16 Mar 2020 17:03:32 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=johnjhkim%40dbs.snu.ac.kr&quot; class=&quot;user-hover&quot; rel=&quot;johnjhkim@dbs.snu.ac.kr&quot;&gt;johnjhkim@dbs.snu.ac.kr&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for filing a ticket - can you post your question to our &lt;a href=&quot;https://community.mongodb.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Community Support Forum&lt;/a&gt; ? We&apos;d love to be able to do more troubleshooting for cases like this, but our bandwidth is limited to working on docs work exclusively. &lt;/p&gt;

&lt;p&gt;Depending on the outcome of the community work, we might have a more specific fix to apply to the docs. &lt;/p&gt;

&lt;p&gt;Thanks. &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 16 Mar 2020 17:03:32 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>ashley.brown@mongodb.com</customfieldvalue>
            <customfieldvalue>emet.ozar@mongodb.com</customfieldvalue>
            <customfieldvalue>johnjhkim@dbs.snu.ac.kr</customfieldvalue>
            <customfieldvalue>ravind.kumar</customfieldvalue>
            <customfieldvalue>sarah.olson@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hx8gb3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hww8an:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hx82kf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>