{"action":"created","comment":{"url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/comments/47399787","id":47399787,"diff_hunk":"@@ -0,0 +1,50 @@\n+package ru.mipt.diht.students.maxDankow.TwitterStream.utils;\n+\n+import com.google.maps.GeoApiContext;\n+import com.google.maps.GeocodingApi;\n+import com.google.maps.GeocodingApiRequest;\n+import com.google.maps.model.GeocodingResult;\n+import com.google.maps.model.Geometry;\n+import twitter4j.GeoLocation;\n+import twitter4j.Place;\n+\n+public class GeolocationUtils {\n+    protected static final String GOOGLE_API_KEY = \"AIzaSyCltC9cSKnrnqOApw5TQ155nwEBW-ZUt1E\";\n+\n+    public static Geometry findLocation(String placeName) {\n+        GeoApiContext context = new GeoApiContext().setApiKey(GOOGLE_API_KEY);\n+        GeocodingApiRequest geoRequest = GeocodingApi.geocode(context, placeName);\n+        Geometry place;\n+        try {\n+            GeocodingResult[] locations = geoRequest.await();\n+            place = locations[0].geometry;","path":"projects/maxDankow/src/main/java/ru/mipt/diht/students/maxDankow/TwitterStream/utils/GeolocationUtils.java","position":20,"original_position":20,"commit_id":"bc8a063b2e8fc1a109644afa031574a9e55d9bf9","original_commit_id":"bc8a063b2e8fc1a109644afa031574a9e55d9bf9","user":{"login":"KhurtinDN","id":320987,"avatar_url":"https://avatars.githubusercontent.com/u/320987?v=3","gravatar_id":"","url":"https://api.github.com/users/KhurtinDN","html_url":"https://github.com/KhurtinDN","followers_url":"https://api.github.com/users/KhurtinDN/followers","following_url":"https://api.github.com/users/KhurtinDN/following{/other_user}","gists_url":"https://api.github.com/users/KhurtinDN/gists{/gist_id}","starred_url":"https://api.github.com/users/KhurtinDN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KhurtinDN/subscriptions","organizations_url":"https://api.github.com/users/KhurtinDN/orgs","repos_url":"https://api.github.com/users/KhurtinDN/repos","events_url":"https://api.github.com/users/KhurtinDN/events{/privacy}","received_events_url":"https://api.github.com/users/KhurtinDN/received_events","type":"User","site_admin":false},"body":"Можно сразу вернуть в этой строчке (return locations[0].geometry)","created_at":"2015-12-11T20:14:31Z","updated_at":"2015-12-11T20:14:31Z","html_url":"https://github.com/KhurtinDN/fizteh-java-2015/pull/37#discussion_r47399787","pull_request_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/comments/47399787"},"html":{"href":"https://github.com/KhurtinDN/fizteh-java-2015/pull/37#discussion_r47399787"},"pull_request":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/37","id":47307214,"html_url":"https://github.com/KhurtinDN/fizteh-java-2015/pull/37","diff_url":"https://github.com/KhurtinDN/fizteh-java-2015/pull/37.diff","patch_url":"https://github.com/KhurtinDN/fizteh-java-2015/pull/37.patch","issue_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/37","number":37,"state":"open","locked":false,"title":"Данковцев Максим, 497, Twitter Stream","user":{"login":"max-dankow","id":5939830,"avatar_url":"https://avatars.githubusercontent.com/u/5939830?v=3","gravatar_id":"","url":"https://api.github.com/users/max-dankow","html_url":"https://github.com/max-dankow","followers_url":"https://api.github.com/users/max-dankow/followers","following_url":"https://api.github.com/users/max-dankow/following{/other_user}","gists_url":"https://api.github.com/users/max-dankow/gists{/gist_id}","starred_url":"https://api.github.com/users/max-dankow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-dankow/subscriptions","organizations_url":"https://api.github.com/users/max-dankow/orgs","repos_url":"https://api.github.com/users/max-dankow/repos","events_url":"https://api.github.com/users/max-dankow/events{/privacy}","received_events_url":"https://api.github.com/users/max-dankow/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-09T18:56:19Z","updated_at":"2015-12-11T20:14:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe504ebbd5b8f8b3b018ef4daa33bb7391d47c9f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/37/commits","review_comments_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/37/comments","review_comment_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/37/comments","statuses_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/statuses/bc8a063b2e8fc1a109644afa031574a9e55d9bf9","head":{"label":"max-dankow:master","ref":"master","sha":"bc8a063b2e8fc1a109644afa031574a9e55d9bf9","user":{"login":"max-dankow","id":5939830,"avatar_url":"https://avatars.githubusercontent.com/u/5939830?v=3","gravatar_id":"","url":"https://api.github.com/users/max-dankow","html_url":"https://github.com/max-dankow","followers_url":"https://api.github.com/users/max-dankow/followers","following_url":"https://api.github.com/users/max-dankow/following{/other_user}","gists_url":"https://api.github.com/users/max-dankow/gists{/gist_id}","starred_url":"https://api.github.com/users/max-dankow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-dankow/subscriptions","organizations_url":"https://api.github.com/users/max-dankow/orgs","repos_url":"https://api.github.com/users/max-dankow/repos","events_url":"https://api.github.com/users/max-dankow/events{/privacy}","received_events_url":"https://api.github.com/users/max-dankow/received_events","type":"User","site_admin":false},"repo":{"id":42645116,"name":"fizteh-java-2015","full_name":"max-dankow/fizteh-java-2015","owner":{"login":"max-dankow","id":5939830,"avatar_url":"https://avatars.githubusercontent.com/u/5939830?v=3","gravatar_id":"","url":"https://api.github.com/users/max-dankow","html_url":"https://github.com/max-dankow","followers_url":"https://api.github.com/users/max-dankow/followers","following_url":"https://api.github.com/users/max-dankow/following{/other_user}","gists_url":"https://api.github.com/users/max-dankow/gists{/gist_id}","starred_url":"https://api.github.com/users/max-dankow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max-dankow/subscriptions","organizations_url":"https://api.github.com/users/max-dankow/orgs","repos_url":"https://api.github.com/users/max-dankow/repos","events_url":"https://api.github.com/users/max-dankow/events{/privacy}","received_events_url":"https://api.github.com/users/max-dankow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/max-dankow/fizteh-java-2015","description":"","fork":true,"url":"https://api.github.com/repos/max-dankow/fizteh-java-2015","forks_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/forks","keys_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/teams","hooks_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/hooks","issue_events_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/issues/events{/number}","events_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/events","assignees_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/assignees{/user}","branches_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/branches{/branch}","tags_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/tags","blobs_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/statuses/{sha}","languages_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/languages","stargazers_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/stargazers","contributors_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/contributors","subscribers_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/subscribers","subscription_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/subscription","commits_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/contents/{+path}","compare_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/merges","archive_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/downloads","issues_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/issues{/number}","pulls_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/pulls{/number}","milestones_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/milestones{/number}","notifications_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/labels{/name}","releases_url":"https://api.github.com/repos/max-dankow/fizteh-java-2015/releases{/id}","created_at":"2015-09-17T08:41:59Z","updated_at":"2015-09-18T18:15:12Z","pushed_at":"2015-12-05T16:35:53Z","git_url":"git://github.com/max-dankow/fizteh-java-2015.git","ssh_url":"git@github.com:max-dankow/fizteh-java-2015.git","clone_url":"https://github.com/max-dankow/fizteh-java-2015.git","svn_url":"https://github.com/max-dankow/fizteh-java-2015","homepage":null,"size":174,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"KhurtinDN:master","ref":"master","sha":"cb81bfc50d86c6fbd094039a1b3f683daa3cb26b","user":{"login":"KhurtinDN","id":320987,"avatar_url":"https://avatars.githubusercontent.com/u/320987?v=3","gravatar_id":"","url":"https://api.github.com/users/KhurtinDN","html_url":"https://github.com/KhurtinDN","followers_url":"https://api.github.com/users/KhurtinDN/followers","following_url":"https://api.github.com/users/KhurtinDN/following{/other_user}","gists_url":"https://api.github.com/users/KhurtinDN/gists{/gist_id}","starred_url":"https://api.github.com/users/KhurtinDN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KhurtinDN/subscriptions","organizations_url":"https://api.github.com/users/KhurtinDN/orgs","repos_url":"https://api.github.com/users/KhurtinDN/repos","events_url":"https://api.github.com/users/KhurtinDN/events{/privacy}","received_events_url":"https://api.github.com/users/KhurtinDN/received_events","type":"User","site_admin":false},"repo":{"id":42640944,"name":"fizteh-java-2015","full_name":"KhurtinDN/fizteh-java-2015","owner":{"login":"KhurtinDN","id":320987,"avatar_url":"https://avatars.githubusercontent.com/u/320987?v=3","gravatar_id":"","url":"https://api.github.com/users/KhurtinDN","html_url":"https://github.com/KhurtinDN","followers_url":"https://api.github.com/users/KhurtinDN/followers","following_url":"https://api.github.com/users/KhurtinDN/following{/other_user}","gists_url":"https://api.github.com/users/KhurtinDN/gists{/gist_id}","starred_url":"https://api.github.com/users/KhurtinDN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KhurtinDN/subscriptions","organizations_url":"https://api.github.com/users/KhurtinDN/orgs","repos_url":"https://api.github.com/users/KhurtinDN/repos","events_url":"https://api.github.com/users/KhurtinDN/events{/privacy}","received_events_url":"https://api.github.com/users/KhurtinDN/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KhurtinDN/fizteh-java-2015","description":"","fork":false,"url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015","forks_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/forks","keys_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/teams","hooks_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/hooks","issue_events_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/events{/number}","events_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/events","assignees_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/assignees{/user}","branches_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/branches{/branch}","tags_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/tags","blobs_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/statuses/{sha}","languages_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/languages","stargazers_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/stargazers","contributors_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/contributors","subscribers_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/subscribers","subscription_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/subscription","commits_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/contents/{+path}","compare_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/merges","archive_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/downloads","issues_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues{/number}","pulls_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls{/number}","milestones_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/milestones{/number}","notifications_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/labels{/name}","releases_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/releases{/id}","created_at":"2015-09-17T07:13:10Z","updated_at":"2015-11-24T22:02:16Z","pushed_at":"2015-12-11T13:32:28Z","git_url":"git://github.com/KhurtinDN/fizteh-java-2015.git","ssh_url":"git@github.com:KhurtinDN/fizteh-java-2015.git","clone_url":"https://github.com/KhurtinDN/fizteh-java-2015.git","svn_url":"https://github.com/KhurtinDN/fizteh-java-2015","homepage":null,"size":723,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":20,"forks":36,"open_issues":20,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/37"},"html":{"href":"https://github.com/KhurtinDN/fizteh-java-2015/pull/37"},"issue":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/37"},"comments":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/statuses/bc8a063b2e8fc1a109644afa031574a9e55d9bf9"}}}}