{"action":"created","issue":{"url":"https://api.github.com/repos/AblionGE/LocPrivLib/issues/5","labels_url":"https://api.github.com/repos/AblionGE/LocPrivLib/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/AblionGE/LocPrivLib/issues/5/comments","events_url":"https://api.github.com/repos/AblionGE/LocPrivLib/issues/5/events","html_url":"https://github.com/AblionGE/LocPrivLib/issues/5","id":113051510,"number":5,"title":"Generate automatically cells around the current position","user":{"login":"AblionGE","id":4447612,"avatar_url":"https://avatars.githubusercontent.com/u/4447612?v=3","gravatar_id":"","url":"https://api.github.com/users/AblionGE","html_url":"https://github.com/AblionGE","followers_url":"https://api.github.com/users/AblionGE/followers","following_url":"https://api.github.com/users/AblionGE/following{/other_user}","gists_url":"https://api.github.com/users/AblionGE/gists{/gist_id}","starred_url":"https://api.github.com/users/AblionGE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AblionGE/subscriptions","organizations_url":"https://api.github.com/users/AblionGE/orgs","repos_url":"https://api.github.com/users/AblionGE/repos","events_url":"https://api.github.com/users/AblionGE/events{/privacy}","received_events_url":"https://api.github.com/users/AblionGE/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AblionGE/LocPrivLib/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/AblionGE/LocPrivLib/labels/high%20priority","name":"high priority","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"AblionGE","id":4447612,"avatar_url":"https://avatars.githubusercontent.com/u/4447612?v=3","gravatar_id":"","url":"https://api.github.com/users/AblionGE","html_url":"https://github.com/AblionGE","followers_url":"https://api.github.com/users/AblionGE/followers","following_url":"https://api.github.com/users/AblionGE/following{/other_user}","gists_url":"https://api.github.com/users/AblionGE/gists{/gist_id}","starred_url":"https://api.github.com/users/AblionGE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AblionGE/subscriptions","organizations_url":"https://api.github.com/users/AblionGE/orgs","repos_url":"https://api.github.com/users/AblionGE/repos","events_url":"https://api.github.com/users/AblionGE/events{/privacy}","received_events_url":"https://api.github.com/users/AblionGE/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-10-23T16:11:36Z","updated_at":"2015-10-31T20:34:44Z","closed_at":null,"body":"Create automatically cells around the current position with a grid of 20x20.\r\nThe ```locId``` created must be stored in the database.\r\n\r\n- [x] Compute cell coordinates from any coordinates\r\n- [x] Compute cell id from GPS\r\n- [x] Compute GPS coordinates from cell ID\r\n- [x] Save only cells with a sensitivity value"},"comment":{"url":"https://api.github.com/repos/AblionGE/LocPrivLib/issues/comments/152769910","html_url":"https://github.com/AblionGE/LocPrivLib/issues/5#issuecomment-152769910","issue_url":"https://api.github.com/repos/AblionGE/LocPrivLib/issues/5","id":152769910,"user":{"login":"AblionGE","id":4447612,"avatar_url":"https://avatars.githubusercontent.com/u/4447612?v=3","gravatar_id":"","url":"https://api.github.com/users/AblionGE","html_url":"https://github.com/AblionGE","followers_url":"https://api.github.com/users/AblionGE/followers","following_url":"https://api.github.com/users/AblionGE/following{/other_user}","gists_url":"https://api.github.com/users/AblionGE/gists{/gist_id}","starred_url":"https://api.github.com/users/AblionGE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AblionGE/subscriptions","organizations_url":"https://api.github.com/users/AblionGE/orgs","repos_url":"https://api.github.com/users/AblionGE/repos","events_url":"https://api.github.com/users/AblionGE/events{/privacy}","received_events_url":"https://api.github.com/users/AblionGE/received_events","type":"User","site_admin":false},"created_at":"2015-10-31T20:34:44Z","updated_at":"2015-10-31T20:34:44Z","body":"To compute the grid and to draw it, I compute the top left corner of the grid and then, for each row, I simply compute ```gridTopLeftCorner-(i*100 meters)``` and I call ```findCellTopLeftPoint(LatLng position)``` on the new ```LatLng``` object. It gives us a grid that is not a square because at each latitude, the longitude for 100 meters is not always the same.\r\n\r\nI also can note that the *Haversine function* is really usefull !"}}