{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/999","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/999/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/999/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/999/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/999","id":140374760,"number":999,"title":"Geolocation Rest always returns same result","user":{"login":"ldmtam","id":8778071,"avatar_url":"https://avatars.githubusercontent.com/u/8778071?v=3","gravatar_id":"","url":"https://api.github.com/users/ldmtam","html_url":"https://github.com/ldmtam","followers_url":"https://api.github.com/users/ldmtam/followers","following_url":"https://api.github.com/users/ldmtam/following{/other_user}","gists_url":"https://api.github.com/users/ldmtam/gists{/gist_id}","starred_url":"https://api.github.com/users/ldmtam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldmtam/subscriptions","organizations_url":"https://api.github.com/users/ldmtam/orgs","repos_url":"https://api.github.com/users/ldmtam/repos","events_url":"https://api.github.com/users/ldmtam/events{/privacy}","received_events_url":"https://api.github.com/users/ldmtam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-12T11:29:34Z","updated_at":"2016-03-13T04:16:02Z","closed_at":null,"body":"Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!\r\n\r\n- [x] You've met the [prerequisites](https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#prerequisites).\r\n\r\n- [x] You're running the [latest version](https://github.com/ParsePlatform/parse-server/releases) of Parse Server.\r\n\r\n- [x] You've searched through [existing issues](https://github.com/ParsePlatform/parse-server/issues?utf8=%E2%9C%93&q=). Chances are that your issue has been reported or resolved before.\r\n\r\n#### Environment Setup\r\n\r\n\r\n#### Steps to reproduce\r\n\r\n\r\n#### Logs/Trace\r\n\r\nI'm using geolocation feature provided from parse server. But parse server always returns the same result array including every location object although i have used the $nearSphere and $maxDistanceInMiles. Please help me out. Thanks in advance."},"comment":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/comments/195866248","html_url":"https://github.com/ParsePlatform/parse-server/issues/999#issuecomment-195866248","issue_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/999","id":195866248,"user":{"login":"ldmtam","id":8778071,"avatar_url":"https://avatars.githubusercontent.com/u/8778071?v=3","gravatar_id":"","url":"https://api.github.com/users/ldmtam","html_url":"https://github.com/ldmtam","followers_url":"https://api.github.com/users/ldmtam/followers","following_url":"https://api.github.com/users/ldmtam/following{/other_user}","gists_url":"https://api.github.com/users/ldmtam/gists{/gist_id}","starred_url":"https://api.github.com/users/ldmtam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldmtam/subscriptions","organizations_url":"https://api.github.com/users/ldmtam/orgs","repos_url":"https://api.github.com/users/ldmtam/repos","events_url":"https://api.github.com/users/ldmtam/events{/privacy}","received_events_url":"https://api.github.com/users/ldmtam/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T04:16:02Z","updated_at":"2016-03-13T04:16:02Z","body":"Assume i have a class with 5 geo elements like this: \r\n![1](https://cloud.githubusercontent.com/assets/8778071/13726870/5e1d3ee6-e90c-11e5-9a58-b07e9e9b45cf.png)\r\n\r\nAnd i want to get 3 objects that are nearest the longitude and latitude coordinate that i have included in the query and with max distance is 1 miles \r\n![2](https://cloud.githubusercontent.com/assets/8778071/13726874/8d8dddde-e90c-11e5-94a6-6f8b99fd348c.png)\r\n\r\nBut the result array always return all of my geolocation objects\r\n![3](https://cloud.githubusercontent.com/assets/8778071/13726878/e7cf7d52-e90c-11e5-9356-bf7f9f09d0e4.png)\r\n![4](https://cloud.githubusercontent.com/assets/8778071/13726879/e8a2824c-e90c-11e5-9566-bc21809c0193.png)\r\n\r\nPlease help me. Thanks!\r\n\r\n"}}