GitHub PullRequestEvent at 2014-09-15 11:44:45
Repository: python-google-places
Actor: commadelimited
Payload: {"action":"opened","number":28,"pull_request":{"url":"https://api.github.com/repos/slimkrazy/python-google-places/pulls/28","id":21226671,"html_url":"https://github.com/slimkrazy/python-google-places/pull/28","diff_url":"https://github.com/slimkrazy/python-google-places/pull/28.diff","patch_url":"https://github.com/slimkrazy/python-google-places/pull/28.patch","issue_url":"https://api.github.com/repos/slimkrazy/python-google-places/issues/28","number":28,"state":"open","locked":false,"title":"Add Places Autocomplete functionality","user":{"login":"commadelimited","id":563460,"avatar_url":"https://avatars.githubusercontent.com/u/563460?v=2","gravatar_id":"124a44ef11fab2edad334746f628336c","url":"https://api.github.com/users/commadelimited","html_url":"https://github.com/commadelimited","followers_url":"https://api.github.com/users/commadelimited/followers","following_url":"https://api.github.com/users/commadelimited/following{/other_user}","gists_url":"https://api.github.com/users/commadelimited/gists{/gist_id}","starred_url":"https://api.github.com/users/commadelimited/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commadelimited/subscriptions","organizations_url":"https://api.github.com/users/commadelimited/orgs","repos_url":"https://api.github.com/users/commadelimited/repos","events_url":"https://api.github.com/users/commadelimited/events{/privacy}","received_events_url":"https://api.github.com/users/commadelimited/received_events","type":"User","site_admin":false},"body":"This pull request adds Places Autocomplete functionality to this library. It includes a new method on the `GooglePlaces` class: `autocomplete`, a new new `GoogleAutocompleteSearchResult`, as well as a new `Prediction` class to handle responses from the autocomplete endpoint. Finally, it includes an additional passing unit test (with fixture data).\r\n\r\nWas previously #27.\r\n\r\nHere's a quick demo setup:\r\n\r\n```\r\nfrom googleplaces import (\r\n    GooglePlaces,\r\n    types,\r\n    lang\r\n)\r\n\r\nAPI_KEY = <your api key>\r\n\r\ngoogle_places = GooglePlaces(API_KEY)\r\n\r\n# query_result = google_places.autocomplete(\r\n#         input='Cuba',\r\n#         language=lang.SPANISH,\r\n#         types=types.AC_TYPE_CITIES,\r\n#         location=dict(lat=40.7310523, lng=-73.99348)\r\n#         )\r\n\r\n# query_result = google_places.autocomplete(\r\n#         input='Hattie',\r\n#         location=dict(lat=36.1528232, lng=-86.7838999)\r\n#         )\r\n\r\n\r\n# nearby search demo\r\n# query_result = google_places.nearby_search(\r\n#         location='Nashville, TN', keyword='Fish and Chips',\r\n#         radius=20000, types=[types.TYPE_FOOD])\r\n\r\n```","created_at":"2014-09-15T11:44:45Z","updated_at":"2014-09-15T11:44:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/slimkrazy/python-google-places/pulls/28/commits","review_comments_url":"https://api.github.com/repos/slimkrazy/python-google-places/pulls/28/comments","review_comment_url":"https://api.github.com/repos/slimkrazy/python-google-places/pulls/comments/{number}","comments_url":"https://api.github.com/repos/slimkrazy/python-google-places/issues/28/comments","statuses_url":"https://api.github.com/repos/slimkrazy/python-google-places/statuses/253e95e67b1a7c5da4d8f8825243b5353aa0bb8f","head":{"label":"commadelimited:add-autocomplete","ref":"add-autocomplete","sha":"253e95e67b1a7c5da4d8f8825243b5353aa0bb8f","user":{"login":"commadelimited","id":563460,"avatar_url":"https://avatars.githubusercontent.com/u/563460?v=2","gravatar_id":"124a44ef11fab2edad334746f628336c","url":"https://api.github.com/users/commadelimited","html_url":"https://github.com/commadelimited","followers_url":"https://api.github.com/users/commadelimited/followers","following_url":"https://api.github.com/users/commadelimited/following{/other_user}","gists_url":"https://api.github.com/users/commadelimited/gists{/gist_id}","starred_url":"https://api.github.com/users/commadelimited/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commadelimited/subscriptions","organizations_url":"https://api.github.com/users/commadelimited/orgs","repos_url":"https://api.github.com/users/commadelimited/repos","events_url":"https://api.github.com/users/commadelimited/events{/privacy}","received_events_url":"https://api.github.com/users/commadelimited/received_events","type":"User","site_admin":false},"repo":{"id":23889503,"name":"python-google-places","full_name":"commadelimited/python-google-places","owner":{"login":"commadelimited","id":563460,"avatar_url":"https://avatars.githubusercontent.com/u/563460?v=2","gravatar_id":"124a44ef11fab2edad334746f628336c","url":"https://api.github.com/users/commadelimited","html_url":"https://github.com/commadelimited","followers_url":"https://api.github.com/users/commadelimited/followers","following_url":"https://api.github.com/users/commadelimited/following{/other_user}","gists_url":"https://api.github.com/users/commadelimited/gists{/gist_id}","starred_url":"https://api.github.com/users/commadelimited/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commadelimited/subscriptions","organizations_url":"https://api.github.com/users/commadelimited/orgs","repos_url":"https://api.github.com/users/commadelimited/repos","events_url":"https://api.github.com/users/commadelimited/events{/privacy}","received_events_url":"https://api.github.com/users/commadelimited/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/commadelimited/python-google-places","description":"Simple wrapper around the new 'experimental' Google Places API","fork":true,"url":"https://api.github.com/repos/commadelimited/python-google-places","forks_url":"https://api.github.com/repos/commadelimited/python-google-places/forks","keys_url":"https://api.github.com/repos/commadelimited/python-google-places/keys{/key_id}","collaborators_url":"https://api.github.com/repos/commadelimited/python-google-places/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/commadelimited/python-google-places/teams","hooks_url":"https://api.github.com/repos/commadelimited/python-google-places/hooks","issue_events_url":"https://api.github.com/repos/commadelimited/python-google-places/issues/events{/number}","events_url":"https://api.github.com/repos/commadelimited/python-google-places/events","assignees_url":"https://api.github.com/repos/commadelimited/python-google-places/assignees{/user}","branches_url":"https://api.github.com/repos/commadelimited/python-google-places/branches{/branch}","tags_url":"https://api.github.com/repos/commadelimited/python-google-places/tags","blobs_url":"https://api.github.com/repos/commadelimited/python-google-places/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/commadelimited/python-google-places/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/commadelimited/python-google-places/git/refs{/sha}","trees_url":"https://api.github.com/repos/commadelimited/python-google-places/git/trees{/sha}","statuses_url":"https://api.github.com/repos/commadelimited/python-google-places/statuses/{sha}","languages_url":"https://api.github.com/repos/commadelimited/python-google-places/languages","stargazers_url":"https://api.github.com/repos/commadelimited/python-google-places/stargazers","contributors_url":"https://api.github.com/repos/commadelimited/python-google-places/contributors","subscribers_url":"https://api.github.com/repos/commadelimited/python-google-places/subscribers","subscription_url":"https://api.github.com/repos/commadelimited/python-google-places/subscription","commits_url":"https://api.github.com/repos/commadelimited/python-google-places/commits{/sha}","git_commits_url":"https://api.github.com/repos/commadelimited/python-google-places/git/commits{/sha}","comments_url":"https://api.github.com/repos/commadelimited/python-google-places/comments{/number}","issue_comment_url":"https://api.github.com/repos/commadelimited/python-google-places/issues/comments/{number}","contents_url":"https://api.github.com/repos/commadelimited/python-google-places/contents/{+path}","compare_url":"https://api.github.com/repos/commadelimited/python-google-places/compare/{base}...{head}","merges_url":"https://api.github.com/repos/commadelimited/python-google-places/merges","archive_url":"https://api.github.com/repos/commadelimited/python-google-places/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/commadelimited/python-google-places/downloads","issues_url":"https://api.github.com/repos/commadelimited/python-google-places/issues{/number}","pulls_url":"https://api.github.com/repos/commadelimited/python-google-places/pulls{/number}","milestones_url":"https://api.github.com/repos/commadelimited/python-google-places/milestones{/number}","notifications_url":"https://api.github.com/repos/commadelimited/python-google-places/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/commadelimited/python-google-places/labels{/name}","releases_url":"https://api.github.com/repos/commadelimited/python-google-places/releases{/id}","created_at":"2014-09-10T19:46:13Z","updated_at":"2014-09-08T08:42:30Z","pushed_at":"2014-09-11T20:03:09Z","git_url":"git://github.com/commadelimited/python-google-places.git","ssh_url":"git@github.com:commadelimited/python-google-places.git","clone_url":"https://github.com/commadelimited/python-google-places.git","svn_url":"https://github.com/commadelimited/python-google-places","homepage":"","size":269,"stargazers_count":0,"watchers_count":0,"language":null,"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":"slimkrazy:development","ref":"development","sha":"eeb2756ea0af238332e79a4eeb2bc39f64c871f8","user":{"login":"slimkrazy","id":1193440,"avatar_url":"https://avatars.githubusercontent.com/u/1193440?v=2","gravatar_id":"834a08112f577aa01a684f3071bddb2e","url":"https://api.github.com/users/slimkrazy","html_url":"https://github.com/slimkrazy","followers_url":"https://api.github.com/users/slimkrazy/followers","following_url":"https://api.github.com/users/slimkrazy/following{/other_user}","gists_url":"https://api.github.com/users/slimkrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/slimkrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimkrazy/subscriptions","organizations_url":"https://api.github.com/users/slimkrazy/orgs","repos_url":"https://api.github.com/users/slimkrazy/repos","events_url":"https://api.github.com/users/slimkrazy/events{/privacy}","received_events_url":"https://api.github.com/users/slimkrazy/received_events","type":"User","site_admin":false},"repo":{"id":3069643,"name":"python-google-places","full_name":"slimkrazy/python-google-places","owner":{"login":"slimkrazy","id":1193440,"avatar_url":"https://avatars.githubusercontent.com/u/1193440?v=2","gravatar_id":"834a08112f577aa01a684f3071bddb2e","url":"https://api.github.com/users/slimkrazy","html_url":"https://github.com/slimkrazy","followers_url":"https://api.github.com/users/slimkrazy/followers","following_url":"https://api.github.com/users/slimkrazy/following{/other_user}","gists_url":"https://api.github.com/users/slimkrazy/gists{/gist_id}","starred_url":"https://api.github.com/users/slimkrazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimkrazy/subscriptions","organizations_url":"https://api.github.com/users/slimkrazy/orgs","repos_url":"https://api.github.com/users/slimkrazy/repos","events_url":"https://api.github.com/users/slimkrazy/events{/privacy}","received_events_url":"https://api.github.com/users/slimkrazy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/slimkrazy/python-google-places","description":"Simple wrapper around the new 'experimental' Google Places API","fork":false,"url":"https://api.github.com/repos/slimkrazy/python-google-places","forks_url":"https://api.github.com/repos/slimkrazy/python-google-places/forks","keys_url":"https://api.github.com/repos/slimkrazy/python-google-places/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slimkrazy/python-google-places/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slimkrazy/python-google-places/teams","hooks_url":"https://api.github.com/repos/slimkrazy/python-google-places/hooks","issue_events_url":"https://api.github.com/repos/slimkrazy/python-google-places/issues/events{/number}","events_url":"https://api.github.com/repos/slimkrazy/python-google-places/events","assignees_url":"https://api.github.com/repos/slimkrazy/python-google-places/assignees{/user}","branches_url":"https://api.github.com/repos/slimkrazy/python-google-places/branches{/branch}","tags_url":"https://api.github.com/repos/slimkrazy/python-google-places/tags","blobs_url":"https://api.github.com/repos/slimkrazy/python-google-places/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slimkrazy/python-google-places/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slimkrazy/python-google-places/git/refs{/sha}","trees_url":"https://api.github.com/repos/slimkrazy/python-google-places/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slimkrazy/python-google-places/statuses/{sha}","languages_url":"https://api.github.com/repos/slimkrazy/python-google-places/languages","stargazers_url":"https://api.github.com/repos/slimkrazy/python-google-places/stargazers","contributors_url":"https://api.github.com/repos/slimkrazy/python-google-places/contributors","subscribers_url":"https://api.github.com/repos/slimkrazy/python-google-places/subscribers","subscription_url":"https://api.github.com/repos/slimkrazy/python-google-places/subscription","commits_url":"https://api.github.com/repos/slimkrazy/python-google-places/commits{/sha}","git_commits_url":"https://api.github.com/repos/slimkrazy/python-google-places/git/commits{/sha}","comments_url":"https://api.github.com/repos/slimkrazy/python-google-places/comments{/number}","issue_comment_url":"https://api.github.com/repos/slimkrazy/python-google-places/issues/comments/{number}","contents_url":"https://api.github.com/repos/slimkrazy/python-google-places/contents/{+path}","compare_url":"https://api.github.com/repos/slimkrazy/python-google-places/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slimkrazy/python-google-places/merges","archive_url":"https://api.github.com/repos/slimkrazy/python-google-places/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slimkrazy/python-google-places/downloads","issues_url":"https://api.github.com/repos/slimkrazy/python-google-places/issues{/number}","pulls_url":"https://api.github.com/repos/slimkrazy/python-google-places/pulls{/number}","milestones_url":"https://api.github.com/repos/slimkrazy/python-google-places/milestones{/number}","notifications_url":"https://api.github.com/repos/slimkrazy/python-google-places/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slimkrazy/python-google-places/labels{/name}","releases_url":"https://api.github.com/repos/slimkrazy/python-google-places/releases{/id}","created_at":"2011-12-29T16:26:11Z","updated_at":"2014-09-11T19:26:50Z","pushed_at":"2014-08-27T08:15:35Z","git_url":"git://github.com/slimkrazy/python-google-places.git","ssh_url":"git@github.com:slimkrazy/python-google-places.git","clone_url":"https://github.com/slimkrazy/python-google-places.git","svn_url":"https://github.com/slimkrazy/python-google-places","homepage":"","size":304,"stargazers_count":61,"watchers_count":61,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":9,"forks":36,"open_issues":9,"watchers":61,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/slimkrazy/python-google-places/pulls/28"},"html":{"href":"https://github.com/slimkrazy/python-google-places/pull/28"},"issue":{"href":"https://api.github.com/repos/slimkrazy/python-google-places/issues/28"},"comments":{"href":"https://api.github.com/repos/slimkrazy/python-google-places/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/slimkrazy/python-google-places/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/slimkrazy/python-google-places/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/slimkrazy/python-google-places/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/slimkrazy/python-google-places/statuses/253e95e67b1a7c5da4d8f8825243b5353aa0bb8f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":342,"deletions":39,"changed_files":4}}