{"action":"created","issue":{"url":"https://api.github.com/repos/kellydunn/golang-geo/issues/49","labels_url":"https://api.github.com/repos/kellydunn/golang-geo/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/kellydunn/golang-geo/issues/49/comments","events_url":"https://api.github.com/repos/kellydunn/golang-geo/issues/49/events","html_url":"https://github.com/kellydunn/golang-geo/issues/49","id":109475875,"number":49,"title":"finding all stored locations within a 20 KM of a GPS point","user":{"login":"gedw99","id":155690,"avatar_url":"https://avatars.githubusercontent.com/u/155690?v=3","gravatar_id":"","url":"https://api.github.com/users/gedw99","html_url":"https://github.com/gedw99","followers_url":"https://api.github.com/users/gedw99/followers","following_url":"https://api.github.com/users/gedw99/following{/other_user}","gists_url":"https://api.github.com/users/gedw99/gists{/gist_id}","starred_url":"https://api.github.com/users/gedw99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gedw99/subscriptions","organizations_url":"https://api.github.com/users/gedw99/orgs","repos_url":"https://api.github.com/users/gedw99/repos","events_url":"https://api.github.com/users/gedw99/events{/privacy}","received_events_url":"https://api.github.com/users/gedw99/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kellydunn/golang-geo/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-02T11:37:42Z","updated_at":"2015-10-02T18:38:40Z","closed_at":null,"body":"could you advise me if this library can so his.\r\n\r\nI dont need to use the SQL functionality for now. i just need to do it all in memory in the middle tier.\r\n\r\ni have every users gps location.\r\nI have a event, for which i have the GPS location.\r\n\r\nSo i need to write  a job that searches for any users location, within 20 km of the Event location.\r\n\r\nThe advantage of this is that i can do all this without having to use google maps APi and all that"},"comment":{"url":"https://api.github.com/repos/kellydunn/golang-geo/issues/comments/145118713","html_url":"https://github.com/kellydunn/golang-geo/issues/49#issuecomment-145118713","issue_url":"https://api.github.com/repos/kellydunn/golang-geo/issues/49","id":145118713,"user":{"login":"kellydunn","id":116621,"avatar_url":"https://avatars.githubusercontent.com/u/116621?v=3","gravatar_id":"","url":"https://api.github.com/users/kellydunn","html_url":"https://github.com/kellydunn","followers_url":"https://api.github.com/users/kellydunn/followers","following_url":"https://api.github.com/users/kellydunn/following{/other_user}","gists_url":"https://api.github.com/users/kellydunn/gists{/gist_id}","starred_url":"https://api.github.com/users/kellydunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kellydunn/subscriptions","organizations_url":"https://api.github.com/users/kellydunn/orgs","repos_url":"https://api.github.com/users/kellydunn/repos","events_url":"https://api.github.com/users/kellydunn/events{/privacy}","received_events_url":"https://api.github.com/users/kellydunn/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T18:38:40Z","updated_at":"2015-10-02T18:38:40Z","body":"Heya, @gedw99 !\r\n\r\n> I dont need to use the SQL functionality for now. i just need to do it all in memory in the middle tier.\r\n>\r\n> i have every users gps location.\r\n> I have a event, for which i have the GPS location.\r\n>\r\n> So i need to write a job that searches for any users location, within 20 km of the Event location\r\n\r\nCurrently, the `SQLMapper` is the only implementation of the [`Mapper`](https://github.com/kellydunn/golang-geo/blob/master/mapper.go) interface, which provides the ability to find users within that location.\r\n\r\nI do have plans to create an in-memory implementation in a `v1.0.0` release using some type of spatial indexing data structure, like a [RTree](https://en.wikipedia.org/wiki/R-tree), but it has yet to be implemented here.\r\n\r\nUnfortuantely, this lib cannot do this for you, but if you wish to use some of the benefits of the library, you could create an implementation of a `Mapper` for now and use it to query for things in memory.  You might be able to port some of the sql logic [here](http://www.movable-type.co.uk/scripts/latlong-db.html) to a more dictionary based search pattern."}}