{"action":"opened","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1080","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1080/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1080/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1080/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/1080","id":141636528,"number":1080,"title":"PFQuery whereKey:nearGeoPoint returning incorrect results","user":{"login":"gateway","id":519563,"avatar_url":"https://avatars.githubusercontent.com/u/519563?v=3","gravatar_id":"","url":"https://api.github.com/users/gateway","html_url":"https://github.com/gateway","followers_url":"https://api.github.com/users/gateway/followers","following_url":"https://api.github.com/users/gateway/following{/other_user}","gists_url":"https://api.github.com/users/gateway/gists{/gist_id}","starred_url":"https://api.github.com/users/gateway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gateway/subscriptions","organizations_url":"https://api.github.com/users/gateway/orgs","repos_url":"https://api.github.com/users/gateway/repos","events_url":"https://api.github.com/users/gateway/events{/privacy}","received_events_url":"https://api.github.com/users/gateway/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-17T16:34:42Z","updated_at":"2016-03-17T16:34:42Z","closed_at":null,"body":"For implementation related questions or technical support, please refer to the [stackoverflow](http://stackoverflow.com/questions/tagged/parse.com) community.\r\n\r\nMake 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\nParse Server 2.1.6 on Heroku\r\niOS Swift\r\n\r\n#### Steps to reproduce\r\nHello, below is my query to find tag objects where a specific key exists \"T\\(tagObjectIDs[0])\". I am limiting the search to within 2 kilometers. When I include the geopoint constraint, parse returns all results, not just the one where that key exists. But if I remove the geopoint constraint, I only get results where the key exists. I'm a little perplexed, it seems like the geopoint query constraint is my issue, just not sure if it's something on my end. Thank you very much!\r\n\r\nEDIT: I did check to make sure the user location is there, as well as the proper key where I'm plugging it into whereKeyExists.\r\n\r\n```\r\n let userGeo:PFGeoPoint = PFGeoPoint(location: userCurrentLocation)\r\n\r\n            let singleQuery = PFQuery(className: \"tags\")\r\n            singleQuery.whereKeyExists(\"T\\(tagObjectIDs[0])\")\r\n            singleQuery.whereKey(\"geoPoint\", nearGeoPoint: userGeo, withinKilometers: 2)\r\n\r\n            singleQuery.findObjectsInBackgroundWithBlock({ (objects, error) -> Void in\r\n\r\n             ...\r\n            })\r\n```\r\n\r\n#### Logs/Trace\r\n"}}