{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/2569","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2569/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2569/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2569/events","html_url":"https://github.com/realm/realm-cocoa/issues/2569","id":108097328,"number":2569,"title":"Geospatial filtering/querying","user":{"login":"mhergon","id":621373,"avatar_url":"https://avatars.githubusercontent.com/u/621373?v=3","gravatar_id":"","url":"https://api.github.com/users/mhergon","html_url":"https://github.com/mhergon","followers_url":"https://api.github.com/users/mhergon/followers","following_url":"https://api.github.com/users/mhergon/following{/other_user}","gists_url":"https://api.github.com/users/mhergon/gists{/gist_id}","starred_url":"https://api.github.com/users/mhergon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhergon/subscriptions","organizations_url":"https://api.github.com/users/mhergon/orgs","repos_url":"https://api.github.com/users/mhergon/repos","events_url":"https://api.github.com/users/mhergon/events{/privacy}","received_events_url":"https://api.github.com/users/mhergon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-24T09:53:20Z","updated_at":"2015-09-24T16:59:18Z","closed_at":null,"body":"Hi,\r\n\r\nIs there any way to do a geospatial filtering by distance?\r\nI'm trying with geohash functions, but If there is a native alternative would be great!\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/142988711","html_url":"https://github.com/realm/realm-cocoa/issues/2569#issuecomment-142988711","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2569","id":142988711,"user":{"login":"mrackwitz","id":1389011,"avatar_url":"https://avatars.githubusercontent.com/u/1389011?v=3","gravatar_id":"","url":"https://api.github.com/users/mrackwitz","html_url":"https://github.com/mrackwitz","followers_url":"https://api.github.com/users/mrackwitz/followers","following_url":"https://api.github.com/users/mrackwitz/following{/other_user}","gists_url":"https://api.github.com/users/mrackwitz/gists{/gist_id}","starred_url":"https://api.github.com/users/mrackwitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrackwitz/subscriptions","organizations_url":"https://api.github.com/users/mrackwitz/orgs","repos_url":"https://api.github.com/users/mrackwitz/repos","events_url":"https://api.github.com/users/mrackwitz/events{/privacy}","received_events_url":"https://api.github.com/users/mrackwitz/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T16:59:18Z","updated_at":"2015-09-24T16:59:18Z","body":"Realm doesn't bring such functionality built-in yet. But meanwhile there is a featured component [ABFRealmMapView](https://realm.io/news/building-an-ios-clustered-map-view-in-objective-c/), which brings not only [ABFLocationFetchRequest](https://github.com/bigfish24/ABFRealmMapView/blob/master/ABFRealmMapView/ABFLocationFetchRequest.h), but also integration with MapKit, if you're interested in that. The implementation of the mentioned class will be worthwhile to checkout."}}