{"action":"closed","issue":{"url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/355","repository_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk","labels_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/355/comments","events_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/355/events","html_url":"https://github.com/QuickBlox/quickblox-ios-sdk/issues/355","id":142382524,"number":355,"title":"Searching for custom objects by location not returning objects","user":{"login":"prometheon","id":2850129,"avatar_url":"https://avatars.githubusercontent.com/u/2850129?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheon","html_url":"https://github.com/prometheon","followers_url":"https://api.github.com/users/prometheon/followers","following_url":"https://api.github.com/users/prometheon/following{/other_user}","gists_url":"https://api.github.com/users/prometheon/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheon/subscriptions","organizations_url":"https://api.github.com/users/prometheon/orgs","repos_url":"https://api.github.com/users/prometheon/repos","events_url":"https://api.github.com/users/prometheon/events{/privacy}","received_events_url":"https://api.github.com/users/prometheon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/labels/needs%20further%20investigation","name":"needs further investigation","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"Eugene-Shapovalov","id":2129491,"avatar_url":"https://avatars.githubusercontent.com/u/2129491?v=3","gravatar_id":"","url":"https://api.github.com/users/Eugene-Shapovalov","html_url":"https://github.com/Eugene-Shapovalov","followers_url":"https://api.github.com/users/Eugene-Shapovalov/followers","following_url":"https://api.github.com/users/Eugene-Shapovalov/following{/other_user}","gists_url":"https://api.github.com/users/Eugene-Shapovalov/gists{/gist_id}","starred_url":"https://api.github.com/users/Eugene-Shapovalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eugene-Shapovalov/subscriptions","organizations_url":"https://api.github.com/users/Eugene-Shapovalov/orgs","repos_url":"https://api.github.com/users/Eugene-Shapovalov/repos","events_url":"https://api.github.com/users/Eugene-Shapovalov/events{/privacy}","received_events_url":"https://api.github.com/users/Eugene-Shapovalov/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-03-21T15:25:16Z","updated_at":"2016-03-22T09:02:03Z","closed_at":"2016-03-22T09:02:02Z","body":"I have three objects stored in a class User with the location values of [41, 70], [41, 71], and [41, 72] respectively.\r\n\r\nI'm calling this code:\r\n```\r\nlet extendedRequest = NSMutableDictionary()\r\nextendedRequest[\"location[near]\"] = \"41.0,69.0;100000000\"\r\nQBRequest.objectsWithClassName(\"User\", extendedRequest: extendedRequest, successBlock: { (response: QBResponse, objects: [QBCOCustomObject]?, page: QBResponsePage?) -> Void in\r\n            \r\n            for object in objects! {\r\n                print(object.ID!)\r\n            }\r\n            \r\n            }, errorBlock: nil)\r\n}\r\n```\r\n\r\nNo objects are being returned. I've tried this with smaller as well as larger radiuses in the extendedRequest.\r\n\r\nHere's the log:\r\n```\r\n2016-03-21 08:19:47.486 QuickbloxTest[48902:1914079] [QBCore] Request URL:https://api.quickblox.com/data/User.json?location%5Bnear%5D=41.0%2C69.0%3B100000000\r\n2016-03-21 08:19:47.486 QuickbloxTest[48902:1914079] [QBCore] Request method: GET\r\n2016-03-21 08:19:47.486 QuickbloxTest[48902:1914079] [QBCore] Request parameters:{\r\n    \"location[near]\" = \"41.0,69.0;100000000\";\r\n}\r\n2016-03-21 08:19:47.487 QuickbloxTest[48902:1914079] [QBCore] Request headers: {\r\n    \"Content-Type\" = \"application/json\";\r\n    \"QB-OS\" = \"iOS 9.2\";\r\n    \"QB-SDK\" = \"iOS 2.6.5\";\r\n    \"QB-Token\" = 5210de68a9b1014c67032fe33e2feb6566cee864;\r\n    \"QuickBlox-REST-API-Version\" = \"0.1.1\";\r\n}\r\n2016-03-21 08:19:47.895 QuickbloxTest[48902:1914107] [QBCore] Response headers: {\r\n    \"Access-Control-Allow-Origin\" = \"*\";\r\n    \"Cache-Control\" = \"max-age=0, private, must-revalidate\";\r\n    Connection = \"keep-alive\";\r\n    \"Content-Length\" = 51;\r\n    \"Content-Type\" = \"application/json; charset=utf-8\";\r\n    Date = \"Mon, 21 Mar 2016 15:19:50 GMT\";\r\n    Etag = \"\\\"abf418459febdeae10e4fea3adbeaf0e\\\"\";\r\n    \"QB-Token-ExpirationDate\" = \"2016-03-21 17:06:52 UTC\";\r\n    \"QuickBlox-REST-API-Version\" = \"0.1.1\";\r\n    Server = \"nginx/1.8.1\";\r\n    Status = \"200 OK\";\r\n    \"Strict-Transport-Security\" = \"max-age=15768000;\";\r\n    \"X-Rack-Cache\" = miss;\r\n    \"X-Request-Id\" = 6c46e38e7597c3fce47dd9739632debf;\r\n    \"X-Runtime\" = \"0.035023\";\r\n    \"X-UA-Compatible\" = \"IE=Edge,chrome=1\";\r\n}\r\n2016-03-21 08:19:47.895 QuickbloxTest[48902:1914107] [QBCore] Response object: {\r\n    \"class_name\" = User;\r\n    items =     (\r\n    );\r\n    limit = 0;\r\n    skip = 0;\r\n}\r\n2016-03-21 08:19:47.895 QuickbloxTest[48902:1914107] [QBCore] Response object: {\r\n    \"class_name\" = User;\r\n    items =     (\r\n    );\r\n    limit = 0;\r\n    skip = 0;\r\n}\r\n```\r\n\r\nThank you!"}}