[SERVER-2341] Geospacial calculations are off Created: 10/Jan/11 Updated: 29/May/12 Resolved: 26/Jan/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Geo |
| Affects Version/s: | 1.7.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ryan Nitz | Assignee: | Mathias Stearn |
| Resolution: | Duplicate | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
Here are my tests: // Radius of the earth: 3959.8728 // Does not return Maplewood // To get a list of all places (with distance in radians): ); // This should include Maplewood, does not. ); Venues: geoDoc = {"name" : '10gen Office', loc: [ -73.99171, 40.738868 ] }db.example.insert(geoDoc); geoDoc = {"name" : 'Maplewood, NJ', loc: [ -74.2713, 40.73137 ] }db.example.insert(geoDoc); |
| Comments |
| Comment by Mathias Stearn [ 10/Jan/11 ] |
|
Distance calculations are correct. maxDistance is being applied incorrectly |