{"action":"created","issue":{"url":"https://api.github.com/repos/RocketMap/RocketMap/issues/1688","repository_url":"https://api.github.com/repos/RocketMap/RocketMap","labels_url":"https://api.github.com/repos/RocketMap/RocketMap/issues/1688/labels{/name}","comments_url":"https://api.github.com/repos/RocketMap/RocketMap/issues/1688/comments","events_url":"https://api.github.com/repos/RocketMap/RocketMap/issues/1688/events","html_url":"https://github.com/RocketMap/RocketMap/pull/1688","id":199468305,"number":1688,"title":"Add geofencing support (WIP)","user":{"login":"birdstream","id":3148697,"avatar_url":"https://avatars.githubusercontent.com/u/3148697?v=3","gravatar_id":"","url":"https://api.github.com/users/birdstream","html_url":"https://github.com/birdstream","followers_url":"https://api.github.com/users/birdstream/followers","following_url":"https://api.github.com/users/birdstream/following{/other_user}","gists_url":"https://api.github.com/users/birdstream/gists{/gist_id}","starred_url":"https://api.github.com/users/birdstream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birdstream/subscriptions","organizations_url":"https://api.github.com/users/birdstream/orgs","repos_url":"https://api.github.com/users/birdstream/repos","events_url":"https://api.github.com/users/birdstream/events{/privacy}","received_events_url":"https://api.github.com/users/birdstream/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":71,"created_at":"2017-01-09T02:50:07Z","updated_at":"2017-02-24T19:38:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RocketMap/RocketMap/pulls/1688","html_url":"https://github.com/RocketMap/RocketMap/pull/1688","diff_url":"https://github.com/RocketMap/RocketMap/pull/1688.diff","patch_url":"https://github.com/RocketMap/RocketMap/pull/1688.patch"},"body":"<!--- Provide a general summary of your changes in the Title above -->\r\n\r\n## Description\r\n<!--- Describe your changes in detail -->\r\nAdded the ability to add a geofence to the map. You can create your geofence coordinates with an online tool like [this one](http://codepen.io/bgus/full/dXxLjp/)\r\nCopy and paste to a text file and add the -gf (or --geofence-file) parameter to the command line like:\r\n`-gf your_geofence_file.txt`\r\nor if you want to exclude a certain area use\r\n`-fa your_geofence_file.txt`\r\n\r\nThis PR currently only takes one -gf and -fa argument, but you can add more than one polygon in the same file\r\n\r\nBe aware! This is very, very WIP. My programming sucks and it could probably be much better done by someone else. I'm not sure what impact it may have on scanning logic etc. But it seems to work well with speedscan. As things are now, dont use geofencing with HexSearch unless together with some speed-limiting PR, as the resulting path will skip around (path logic needs to be more clever here)\r\n![skarmbild fran 2017-01-10 04 31 32](https://cloud.githubusercontent.com/assets/3148697/21793271/eb820812-d6ef-11e6-84f5-a4b446f26cb7.png)\r\n![skarmbild fran 2017-01-10 04 31 15](https://cloud.githubusercontent.com/assets/3148697/21793270/eb817186-d6ef-11e6-8573-a8d0a6b747ce.png)\r\n\r\n## Motivation and Context\r\n<!--- Why is this change required? What problem does it solve? -->\r\n<!--- If it fixes an open issue, please link to the issue here. -->\r\nI've always wanted geofencing so i added it myself :)\r\nCould be really useful if you're scanning around a beach or whatever but don't want to scan the sea for fish ;)\r\n\r\n## How Has This Been Tested?\r\n<!--- Please describe in detail how you tested your changes. -->\r\n<!--- Include details of your testing environment, and the tests you ran to -->\r\n<!--- see how your change affects other areas of the code, etc. -->\r\n\r\nOn my own map\r\n\r\n## Screenshots (if appropriate):\r\n\r\n## Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n<!--  NOTE: In order to check code style locally and avoid having your build rejected by Travis, -->\r\n<!--  run the following commands before you commit: `flake8 .` and `npm run lint`. Fix any -->\r\n<!--  issues they point out. Note also that flake's NOQA is disabled on Travis. -->\r\n- [ ] My code follows the code style of this project. - Probably not?\r\n- [ ] My change requires a change to the documentation. - I guess!\r\n- [ ] I have updated the documentation accordingly. - No...\r\n"},"comment":{"url":"https://api.github.com/repos/RocketMap/RocketMap/issues/comments/282384693","html_url":"https://github.com/RocketMap/RocketMap/pull/1688#issuecomment-282384693","issue_url":"https://api.github.com/repos/RocketMap/RocketMap/issues/1688","id":282384693,"user":{"login":"jlarrigan","id":113029,"avatar_url":"https://avatars.githubusercontent.com/u/113029?v=3","gravatar_id":"","url":"https://api.github.com/users/jlarrigan","html_url":"https://github.com/jlarrigan","followers_url":"https://api.github.com/users/jlarrigan/followers","following_url":"https://api.github.com/users/jlarrigan/following{/other_user}","gists_url":"https://api.github.com/users/jlarrigan/gists{/gist_id}","starred_url":"https://api.github.com/users/jlarrigan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlarrigan/subscriptions","organizations_url":"https://api.github.com/users/jlarrigan/orgs","repos_url":"https://api.github.com/users/jlarrigan/repos","events_url":"https://api.github.com/users/jlarrigan/events{/privacy}","received_events_url":"https://api.github.com/users/jlarrigan/received_events","type":"User","site_admin":false},"created_at":"2017-02-24T19:38:34Z","updated_at":"2017-02-24T19:38:34Z","body":"Trying to get this to work but running into this in the logs. Any thoughts? \r\n\r\n```\r\n2017-02-24 19:35:38,902 [account-recycler][        search][    INFO] Account recycler running. Checking status of 0 accounts.\r\n2017-02-24 19:35:38,904 [      db-cleaner][        models][    INFO] Regular database cleaning complete.\r\n2017-02-24 19:36:38,954 [account-recycler][        search][    INFO] Account recycler running. Checking status of 0 accounts.\r\n2017-02-24 19:36:38,956 [      db-cleaner][        models][    INFO] Regular database cleaning complete\r\n```"}}
{"actor":{"display_login":"jlarrigan"}}