{"action":"created","comment":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments/73130130","id":73130130,"diff_hunk":"@@ -0,0 +1,126 @@\n+# -*- coding: utf-8 -*-\n+\n+import gpxpy\n+import gpxpy.gpx\n+import json\n+import googlemaps\n+import pokemongo_bot.logger as logger\n+from pokemongo_bot.cell_workers.base_task import BaseTask\n+from pokemongo_bot.cell_workers.utils import distance, i2f, format_dist\n+from pokemongo_bot.human_behaviour import sleep\n+from pokemongo_bot.step_walker import StepWalker\n+from pgoapi.utilities import f2i\n+\n+\n+class FollowHumanPath(BaseTask):\n+    def get_gmap_directions(self, origin, destination):\n+        directions_json = googlemaps.directions.directions(self.gmap_client, origin, destination, mode=\"walking\", optimize_waypoints=True)","path":"pokemongo_bot/cell_workers/follow_human_path.py","position":17,"original_position":17,"commit_id":"cc0a4d8519725664a554ceb3d7e791efccbca990","original_commit_id":"cc0a4d8519725664a554ceb3d7e791efccbca990","user":{"login":"th3w4y","id":10997651,"avatar_url":"https://avatars.githubusercontent.com/u/10997651?v=3","gravatar_id":"","url":"https://api.github.com/users/th3w4y","html_url":"https://github.com/th3w4y","followers_url":"https://api.github.com/users/th3w4y/followers","following_url":"https://api.github.com/users/th3w4y/following{/other_user}","gists_url":"https://api.github.com/users/th3w4y/gists{/gist_id}","starred_url":"https://api.github.com/users/th3w4y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/th3w4y/subscriptions","organizations_url":"https://api.github.com/users/th3w4y/orgs","repos_url":"https://api.github.com/users/th3w4y/repos","events_url":"https://api.github.com/users/th3w4y/events{/privacy}","received_events_url":"https://api.github.com/users/th3w4y/received_events","type":"User","site_admin":false},"body":"optimize_waypoints is not needed since you don't give waypoints","created_at":"2016-08-02T10:21:49Z","updated_at":"2016-08-02T10:21:49Z","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/2306#discussion_r73130130","pull_request_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/2306","_links":{"self":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments/73130130"},"html":{"href":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/2306#discussion_r73130130"},"pull_request":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/2306"}}},"pull_request":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/2306","id":79677708,"html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/2306","diff_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/2306.diff","patch_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/2306.patch","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/2306","number":2306,"state":"closed","locked":false,"title":"Follow Path with googlemaps directions api integration (follows roads and paths)","user":{"login":"LasseSkogland","id":4449205,"avatar_url":"https://avatars.githubusercontent.com/u/4449205?v=3","gravatar_id":"","url":"https://api.github.com/users/LasseSkogland","html_url":"https://github.com/LasseSkogland","followers_url":"https://api.github.com/users/LasseSkogland/followers","following_url":"https://api.github.com/users/LasseSkogland/following{/other_user}","gists_url":"https://api.github.com/users/LasseSkogland/gists{/gist_id}","starred_url":"https://api.github.com/users/LasseSkogland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LasseSkogland/subscriptions","organizations_url":"https://api.github.com/users/LasseSkogland/orgs","repos_url":"https://api.github.com/users/LasseSkogland/repos","events_url":"https://api.github.com/users/LasseSkogland/events{/privacy}","received_events_url":"https://api.github.com/users/LasseSkogland/received_events","type":"User","site_admin":false},"body":"Short Description: \r\nAdded a new cell_worker based on `pokemongo_bot/cell_workers/follow_path.py`\r\nIt utilizes the Google Maps Directions API to follow roads and paths.\r\nThis is a \"proof of concept\" and could probably use some more work.\r\nI will run some test to see how stable the code is. (it should be stable)\r\n\r\nFixes:\r\n- Added  Class FollowHumanPath\r\n\r\n","created_at":"2016-08-02T05:24:27Z","updated_at":"2016-08-02T10:21:49Z","closed_at":"2016-08-02T08:43:53Z","merged_at":null,"merge_commit_sha":"32beb1d1e3d3295483a5feb64df9f45be95f2853","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/2306/commits","review_comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/2306/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/2306/comments","statuses_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/cc0a4d8519725664a554ceb3d7e791efccbca990","head":{"label":"LasseSkogland:dev","ref":"dev","sha":"cc0a4d8519725664a554ceb3d7e791efccbca990","user":{"login":"LasseSkogland","id":4449205,"avatar_url":"https://avatars.githubusercontent.com/u/4449205?v=3","gravatar_id":"","url":"https://api.github.com/users/LasseSkogland","html_url":"https://github.com/LasseSkogland","followers_url":"https://api.github.com/users/LasseSkogland/followers","following_url":"https://api.github.com/users/LasseSkogland/following{/other_user}","gists_url":"https://api.github.com/users/LasseSkogland/gists{/gist_id}","starred_url":"https://api.github.com/users/LasseSkogland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LasseSkogland/subscriptions","organizations_url":"https://api.github.com/users/LasseSkogland/orgs","repos_url":"https://api.github.com/users/LasseSkogland/repos","events_url":"https://api.github.com/users/LasseSkogland/events{/privacy}","received_events_url":"https://api.github.com/users/LasseSkogland/received_events","type":"User","site_admin":false},"repo":{"id":64714009,"name":"PokemonGo-Bot","full_name":"LasseSkogland/PokemonGo-Bot","owner":{"login":"LasseSkogland","id":4449205,"avatar_url":"https://avatars.githubusercontent.com/u/4449205?v=3","gravatar_id":"","url":"https://api.github.com/users/LasseSkogland","html_url":"https://github.com/LasseSkogland","followers_url":"https://api.github.com/users/LasseSkogland/followers","following_url":"https://api.github.com/users/LasseSkogland/following{/other_user}","gists_url":"https://api.github.com/users/LasseSkogland/gists{/gist_id}","starred_url":"https://api.github.com/users/LasseSkogland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LasseSkogland/subscriptions","organizations_url":"https://api.github.com/users/LasseSkogland/orgs","repos_url":"https://api.github.com/users/LasseSkogland/repos","events_url":"https://api.github.com/users/LasseSkogland/events{/privacy}","received_events_url":"https://api.github.com/users/LasseSkogland/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LasseSkogland/PokemonGo-Bot","description":"The Pokemon Go Bot, baking with community.","fork":true,"url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot","forks_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/forks","keys_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/teams","hooks_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/hooks","issue_events_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/issues/events{/number}","events_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/events","assignees_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/assignees{/user}","branches_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/branches{/branch}","tags_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/tags","blobs_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/languages","stargazers_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/stargazers","contributors_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/contributors","subscribers_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/subscribers","subscription_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/subscription","commits_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/contents/{+path}","compare_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/merges","archive_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/downloads","issues_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/issues{/number}","pulls_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/labels{/name}","releases_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/releases{/id}","deployments_url":"https://api.github.com/repos/LasseSkogland/PokemonGo-Bot/deployments","created_at":"2016-08-02T01:33:20Z","updated_at":"2016-08-02T01:33:21Z","pushed_at":"2016-08-02T07:30:17Z","git_url":"git://github.com/LasseSkogland/PokemonGo-Bot.git","ssh_url":"git@github.com:LasseSkogland/PokemonGo-Bot.git","clone_url":"https://github.com/LasseSkogland/PokemonGo-Bot.git","svn_url":"https://github.com/LasseSkogland/PokemonGo-Bot","homepage":"","size":6426,"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":"50303f81a2e6a7ad1da31558ead5ef636d3aa192","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-08-02T10:18:40Z","pushed_at":"2016-08-02T10:06:23Z","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":8837,"stargazers_count":2013,"watchers_count":2013,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":867,"mirror_url":null,"open_issues_count":455,"forks":867,"open_issues":455,"watchers":2013,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/2306"},"html":{"href":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/2306"},"issue":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/2306"},"comments":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/2306/comments"},"review_comments":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/2306/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/2306/commits"},"statuses":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/cc0a4d8519725664a554ceb3d7e791efccbca990"}}}}
{"actor":{"display_login":"th3w4y"}}