{"action":"created","comment":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments/72668423","id":72668423,"diff_hunk":"@@ -0,0 +1,71 @@\n+# -*- coding: utf-8 -*-\n+import logger\n+from cell_workers.utils import distance, i2f, format_dist\n+from human_behaviour import sleep\n+from step_walker import StepWalker\n+from pgoapi.utilities import f2i\n+\n+\n+class PathNavigator(object):","path":"pokemongo_bot/path_navigator.py","position":9,"original_position":9,"commit_id":"de83ed99f390881b230845259ce8526be4dff612","original_commit_id":"de83ed99f390881b230845259ce8526be4dff612","user":{"login":"TheSavior","id":249164,"avatar_url":"https://avatars.githubusercontent.com/u/249164?v=3","gravatar_id":"","url":"https://api.github.com/users/TheSavior","html_url":"https://github.com/TheSavior","followers_url":"https://api.github.com/users/TheSavior/followers","following_url":"https://api.github.com/users/TheSavior/following{/other_user}","gists_url":"https://api.github.com/users/TheSavior/gists{/gist_id}","starred_url":"https://api.github.com/users/TheSavior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheSavior/subscriptions","organizations_url":"https://api.github.com/users/TheSavior/orgs","repos_url":"https://api.github.com/users/TheSavior/repos","events_url":"https://api.github.com/users/TheSavior/events{/privacy}","received_events_url":"https://api.github.com/users/TheSavior/received_events","type":"User","site_admin":false},"body":"In a lot of ways, every navigator does this right? The navigator comes up with a set of points and then walks them. Perhaps we need to find a way for this to be some kind of base that the other navigators can be built on so we don't have repeated code.","created_at":"2016-07-28T17:48:10Z","updated_at":"2016-07-28T17:48:10Z","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1457#discussion_r72668423","pull_request_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1457","_links":{"self":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments/72668423"},"html":{"href":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1457#discussion_r72668423"},"pull_request":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1457"}}},"pull_request":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1457","id":79237099,"html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1457","diff_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1457.diff","patch_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1457.patch","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1457","number":1457,"state":"open","locked":false,"title":"[FEATURE] Path Navigator","user":{"login":"binarydepartment","id":3606923,"avatar_url":"https://avatars.githubusercontent.com/u/3606923?v=3","gravatar_id":"","url":"https://api.github.com/users/binarydepartment","html_url":"https://github.com/binarydepartment","followers_url":"https://api.github.com/users/binarydepartment/followers","following_url":"https://api.github.com/users/binarydepartment/following{/other_user}","gists_url":"https://api.github.com/users/binarydepartment/gists{/gist_id}","starred_url":"https://api.github.com/users/binarydepartment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarydepartment/subscriptions","organizations_url":"https://api.github.com/users/binarydepartment/orgs","repos_url":"https://api.github.com/users/binarydepartment/repos","events_url":"https://api.github.com/users/binarydepartment/events{/privacy}","received_events_url":"https://api.github.com/users/binarydepartment/received_events","type":"User","site_admin":false},"body":"Short Description: \r\nAdds a navigator that walks along specified points. Forts that are on the path will be farmed.\r\n\r\nNeeds the following config:\r\n\r\n`\"navigator\": \"path\",\r\n    \"path_navigator\": {\r\n      \"mode\": \"loop\",\r\n      \"points\": [\r\n        \"52.2781529,8.0381441\",\r\n        \"52.2773433,8.0367405\",\r\n        \"52.276564,8.0382986\"\r\n      ]\r\n    },`\r\n\r\n\r\nmode loop walks from start to end point\r\nmode linear (or if mode not set) just turns around and walks the path in reverse direction","created_at":"2016-07-28T17:36:49Z","updated_at":"2016-07-28T17:48:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68c288035ed7baf0c7a1186b4cae079fafbd073d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1457/commits","review_comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1457/comments","review_comment_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1457/comments","statuses_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/de83ed99f390881b230845259ce8526be4dff612","head":{"label":"binarydepartment:feature/path-navigation","ref":"feature/path-navigation","sha":"de83ed99f390881b230845259ce8526be4dff612","user":{"login":"binarydepartment","id":3606923,"avatar_url":"https://avatars.githubusercontent.com/u/3606923?v=3","gravatar_id":"","url":"https://api.github.com/users/binarydepartment","html_url":"https://github.com/binarydepartment","followers_url":"https://api.github.com/users/binarydepartment/followers","following_url":"https://api.github.com/users/binarydepartment/following{/other_user}","gists_url":"https://api.github.com/users/binarydepartment/gists{/gist_id}","starred_url":"https://api.github.com/users/binarydepartment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarydepartment/subscriptions","organizations_url":"https://api.github.com/users/binarydepartment/orgs","repos_url":"https://api.github.com/users/binarydepartment/repos","events_url":"https://api.github.com/users/binarydepartment/events{/privacy}","received_events_url":"https://api.github.com/users/binarydepartment/received_events","type":"User","site_admin":false},"repo":{"id":64216606,"name":"PokemonGo-Bot","full_name":"binarydepartment/PokemonGo-Bot","owner":{"login":"binarydepartment","id":3606923,"avatar_url":"https://avatars.githubusercontent.com/u/3606923?v=3","gravatar_id":"","url":"https://api.github.com/users/binarydepartment","html_url":"https://github.com/binarydepartment","followers_url":"https://api.github.com/users/binarydepartment/followers","following_url":"https://api.github.com/users/binarydepartment/following{/other_user}","gists_url":"https://api.github.com/users/binarydepartment/gists{/gist_id}","starred_url":"https://api.github.com/users/binarydepartment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarydepartment/subscriptions","organizations_url":"https://api.github.com/users/binarydepartment/orgs","repos_url":"https://api.github.com/users/binarydepartment/repos","events_url":"https://api.github.com/users/binarydepartment/events{/privacy}","received_events_url":"https://api.github.com/users/binarydepartment/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/binarydepartment/PokemonGo-Bot","description":"The Pokemon Go Bot script, baking with community.","fork":true,"url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot","forks_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/forks","keys_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/teams","hooks_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/hooks","issue_events_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/issues/events{/number}","events_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/events","assignees_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/assignees{/user}","branches_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/branches{/branch}","tags_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/tags","blobs_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/languages","stargazers_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/stargazers","contributors_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/contributors","subscribers_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/subscribers","subscription_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/subscription","commits_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/contents/{+path}","compare_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/merges","archive_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/downloads","issues_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/issues{/number}","pulls_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/labels{/name}","releases_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/releases{/id}","deployments_url":"https://api.github.com/repos/binarydepartment/PokemonGo-Bot/deployments","created_at":"2016-07-26T11:39:02Z","updated_at":"2016-07-26T11:39:04Z","pushed_at":"2016-07-28T17:33:11Z","git_url":"git://github.com/binarydepartment/PokemonGo-Bot.git","ssh_url":"git@github.com:binarydepartment/PokemonGo-Bot.git","clone_url":"https://github.com/binarydepartment/PokemonGo-Bot.git","svn_url":"https://github.com/binarydepartment/PokemonGo-Bot","homepage":"","size":5904,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PokemonGoF:dev","ref":"dev","sha":"34caa002a464b7665cdcfb531ea3d302632898ac","user":{"login":"PokemonGoF","id":20551204,"avatar_url":"https://avatars.githubusercontent.com/u/20551204?v=3","gravatar_id":"","url":"https://api.github.com/users/PokemonGoF","html_url":"https://github.com/PokemonGoF","followers_url":"https://api.github.com/users/PokemonGoF/followers","following_url":"https://api.github.com/users/PokemonGoF/following{/other_user}","gists_url":"https://api.github.com/users/PokemonGoF/gists{/gist_id}","starred_url":"https://api.github.com/users/PokemonGoF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PokemonGoF/subscriptions","organizations_url":"https://api.github.com/users/PokemonGoF/orgs","repos_url":"https://api.github.com/users/PokemonGoF/repos","events_url":"https://api.github.com/users/PokemonGoF/events{/privacy}","received_events_url":"https://api.github.com/users/PokemonGoF/received_events","type":"Organization","site_admin":false},"repo":{"id":63752974,"name":"PokemonGo-Bot","full_name":"PokemonGoF/PokemonGo-Bot","owner":{"login":"PokemonGoF","id":20551204,"avatar_url":"https://avatars.githubusercontent.com/u/20551204?v=3","gravatar_id":"","url":"https://api.github.com/users/PokemonGoF","html_url":"https://github.com/PokemonGoF","followers_url":"https://api.github.com/users/PokemonGoF/followers","following_url":"https://api.github.com/users/PokemonGoF/following{/other_user}","gists_url":"https://api.github.com/users/PokemonGoF/gists{/gist_id}","starred_url":"https://api.github.com/users/PokemonGoF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PokemonGoF/subscriptions","organizations_url":"https://api.github.com/users/PokemonGoF/orgs","repos_url":"https://api.github.com/users/PokemonGoF/repos","events_url":"https://api.github.com/users/PokemonGoF/events{/privacy}","received_events_url":"https://api.github.com/users/PokemonGoF/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PokemonGoF/PokemonGo-Bot","description":"The Pokemon Go Bot, baking with community.","fork":false,"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot","forks_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/forks","keys_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/teams","hooks_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/hooks","issue_events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/events{/number}","events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/events","assignees_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/assignees{/user}","branches_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/branches{/branch}","tags_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/tags","blobs_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/languages","stargazers_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/stargazers","contributors_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/contributors","subscribers_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/subscribers","subscription_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/subscription","commits_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/contents/{+path}","compare_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/merges","archive_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/downloads","issues_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues{/number}","pulls_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/labels{/name}","releases_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/releases{/id}","deployments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/deployments","created_at":"2016-07-20T05:31:53Z","updated_at":"2016-07-28T17:45:56Z","pushed_at":"2016-07-28T17:47:30Z","git_url":"git://github.com/PokemonGoF/PokemonGo-Bot.git","ssh_url":"git@github.com:PokemonGoF/PokemonGo-Bot.git","clone_url":"https://github.com/PokemonGoF/PokemonGo-Bot.git","svn_url":"https://github.com/PokemonGoF/PokemonGo-Bot","homepage":"","size":7765,"stargazers_count":1408,"watchers_count":1408,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":602,"mirror_url":null,"open_issues_count":285,"forks":602,"open_issues":285,"watchers":1408,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1457"},"html":{"href":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/1457"},"issue":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1457"},"comments":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/1457/comments"},"review_comments":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1457/comments"},"review_comment":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/1457/commits"},"statuses":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/de83ed99f390881b230845259ce8526be4dff612"}}}}
{"actor":{"display_login":"TheSavior"}}