{"action":"closed","number":2112,"pull_request":{"url":"https://api.github.com/repos/sharetribe/sharetribe/pulls/2112","id":73563703,"html_url":"https://github.com/sharetribe/sharetribe/pull/2112","diff_url":"https://github.com/sharetribe/sharetribe/pull/2112.diff","patch_url":"https://github.com/sharetribe/sharetribe/pull/2112.patch","issue_url":"https://api.github.com/repos/sharetribe/sharetribe/issues/2112","number":2112,"state":"closed","locked":false,"title":"SearchBar location autocompletion","user":{"login":"kpuputti","id":53923,"avatar_url":"https://avatars.githubusercontent.com/u/53923?v=3","gravatar_id":"","url":"https://api.github.com/users/kpuputti","html_url":"https://github.com/kpuputti","followers_url":"https://api.github.com/users/kpuputti/followers","following_url":"https://api.github.com/users/kpuputti/following{/other_user}","gists_url":"https://api.github.com/users/kpuputti/gists{/gist_id}","starred_url":"https://api.github.com/users/kpuputti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpuputti/subscriptions","organizations_url":"https://api.github.com/users/kpuputti/orgs","repos_url":"https://api.github.com/users/kpuputti/repos","events_url":"https://api.github.com/users/kpuputti/events{/privacy}","received_events_url":"https://api.github.com/users/kpuputti/received_events","type":"User","site_admin":false},"body":"Add Google Maps location autocompletion to the `SearchBar` React component. The selected location comes as coordinates in the `onSubmit` callback value.\r\n\r\n## Example 1: Selecting a location and submitting form\r\n\r\nAfter selecting location:\r\n\r\n<img width=\"400\" alt=\"screen shot 2016-06-13 at 15 18 26\" src=\"https://cloud.githubusercontent.com/assets/53923/16007264/20a8227c-317a-11e6-8dd8-7a8484508c82.png\">\r\n\r\n`onSubmit` yields\r\n\r\n```javascript\r\n{\r\n  keyword: null,\r\n  location: \"Hellevoetsluis, Netherlands\",\r\n  coordinates: \"51.831863,4.13181\"\r\n}\r\n```\r\n\r\n## Example 2: Submitting form without selecting location\r\n\r\n<img width=\"402\" alt=\"screen shot 2016-06-13 at 15 15 42\" src=\"https://cloud.githubusercontent.com/assets/53923/16007207/bb5e0d1e-3179-11e6-84be-f9091b856614.png\">\r\n\r\n`onSubmit` yields\r\n\r\n```javascript\r\n{\r\n  keyword: null,\r\n  location: \"hell\",\r\n  coordinates: \"60.167215,24.965187\" // first place predicted from the \"hell\" query\r\n}\r\n```\r\n\r\n## Example 3: keyword only\r\n\r\n<img width=\"401\" alt=\"screen shot 2016-06-13 at 15 20 13\" src=\"https://cloud.githubusercontent.com/assets/53923/16007320/662e646e-317a-11e6-80dd-c15cedde60a2.png\">\r\n\r\n`onSubmit` yields\r\n\r\n```javascript\r\n{\r\n  keyword: \"bicycle\",\r\n  location: \"\",\r\n  coords: null\r\n}\r\n```\r\n\r\nThe `onSubmit` is **not** called if all the inputs are empty.\r\n\r\n## Styleguide\r\n\r\nSee the [interactive component](https://sharetribe.github.io/sharetribe/topbar-location-autocomplete/?selectedKind=Top%20bar&selectedStory=With%20location%20search) in the Styleguide.\r\n","created_at":"2016-06-13T11:58:59Z","updated_at":"2016-06-15T06:12:07Z","closed_at":"2016-06-15T06:12:06Z","merged_at":"2016-06-15T06:12:06Z","merge_commit_sha":"f1eff01c6ab2bd2643fca079ad9ac9f8f2209e47","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sharetribe/sharetribe/pulls/2112/commits","review_comments_url":"https://api.github.com/repos/sharetribe/sharetribe/pulls/2112/comments","review_comment_url":"https://api.github.com/repos/sharetribe/sharetribe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sharetribe/sharetribe/issues/2112/comments","statuses_url":"https://api.github.com/repos/sharetribe/sharetribe/statuses/0aac5b5cb0adccaca947c6b7cba0f95fb4e7de0e","head":{"label":"sharetribe:topbar-location-autocomplete","ref":"topbar-location-autocomplete","sha":"0aac5b5cb0adccaca947c6b7cba0f95fb4e7de0e","user":{"login":"sharetribe","id":1733898,"avatar_url":"https://avatars.githubusercontent.com/u/1733898?v=3","gravatar_id":"","url":"https://api.github.com/users/sharetribe","html_url":"https://github.com/sharetribe","followers_url":"https://api.github.com/users/sharetribe/followers","following_url":"https://api.github.com/users/sharetribe/following{/other_user}","gists_url":"https://api.github.com/users/sharetribe/gists{/gist_id}","starred_url":"https://api.github.com/users/sharetribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharetribe/subscriptions","organizations_url":"https://api.github.com/users/sharetribe/orgs","repos_url":"https://api.github.com/users/sharetribe/repos","events_url":"https://api.github.com/users/sharetribe/events{/privacy}","received_events_url":"https://api.github.com/users/sharetribe/received_events","type":"Organization","site_admin":false},"repo":{"id":4447023,"name":"sharetribe","full_name":"sharetribe/sharetribe","owner":{"login":"sharetribe","id":1733898,"avatar_url":"https://avatars.githubusercontent.com/u/1733898?v=3","gravatar_id":"","url":"https://api.github.com/users/sharetribe","html_url":"https://github.com/sharetribe","followers_url":"https://api.github.com/users/sharetribe/followers","following_url":"https://api.github.com/users/sharetribe/following{/other_user}","gists_url":"https://api.github.com/users/sharetribe/gists{/gist_id}","starred_url":"https://api.github.com/users/sharetribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharetribe/subscriptions","organizations_url":"https://api.github.com/users/sharetribe/orgs","repos_url":"https://api.github.com/users/sharetribe/repos","events_url":"https://api.github.com/users/sharetribe/events{/privacy}","received_events_url":"https://api.github.com/users/sharetribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sharetribe/sharetribe","description":"Open source marketplace platform","fork":false,"url":"https://api.github.com/repos/sharetribe/sharetribe","forks_url":"https://api.github.com/repos/sharetribe/sharetribe/forks","keys_url":"https://api.github.com/repos/sharetribe/sharetribe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sharetribe/sharetribe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sharetribe/sharetribe/teams","hooks_url":"https://api.github.com/repos/sharetribe/sharetribe/hooks","issue_events_url":"https://api.github.com/repos/sharetribe/sharetribe/issues/events{/number}","events_url":"https://api.github.com/repos/sharetribe/sharetribe/events","assignees_url":"https://api.github.com/repos/sharetribe/sharetribe/assignees{/user}","branches_url":"https://api.github.com/repos/sharetribe/sharetribe/branches{/branch}","tags_url":"https://api.github.com/repos/sharetribe/sharetribe/tags","blobs_url":"https://api.github.com/repos/sharetribe/sharetribe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sharetribe/sharetribe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sharetribe/sharetribe/git/refs{/sha}","trees_url":"https://api.github.com/repos/sharetribe/sharetribe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sharetribe/sharetribe/statuses/{sha}","languages_url":"https://api.github.com/repos/sharetribe/sharetribe/languages","stargazers_url":"https://api.github.com/repos/sharetribe/sharetribe/stargazers","contributors_url":"https://api.github.com/repos/sharetribe/sharetribe/contributors","subscribers_url":"https://api.github.com/repos/sharetribe/sharetribe/subscribers","subscription_url":"https://api.github.com/repos/sharetribe/sharetribe/subscription","commits_url":"https://api.github.com/repos/sharetribe/sharetribe/commits{/sha}","git_commits_url":"https://api.github.com/repos/sharetribe/sharetribe/git/commits{/sha}","comments_url":"https://api.github.com/repos/sharetribe/sharetribe/comments{/number}","issue_comment_url":"https://api.github.com/repos/sharetribe/sharetribe/issues/comments{/number}","contents_url":"https://api.github.com/repos/sharetribe/sharetribe/contents/{+path}","compare_url":"https://api.github.com/repos/sharetribe/sharetribe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sharetribe/sharetribe/merges","archive_url":"https://api.github.com/repos/sharetribe/sharetribe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sharetribe/sharetribe/downloads","issues_url":"https://api.github.com/repos/sharetribe/sharetribe/issues{/number}","pulls_url":"https://api.github.com/repos/sharetribe/sharetribe/pulls{/number}","milestones_url":"https://api.github.com/repos/sharetribe/sharetribe/milestones{/number}","notifications_url":"https://api.github.com/repos/sharetribe/sharetribe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sharetribe/sharetribe/labels{/name}","releases_url":"https://api.github.com/repos/sharetribe/sharetribe/releases{/id}","deployments_url":"https://api.github.com/repos/sharetribe/sharetribe/deployments","created_at":"2012-05-25T15:34:17Z","updated_at":"2016-06-13T17:56:51Z","pushed_at":"2016-06-15T06:12:06Z","git_url":"git://github.com/sharetribe/sharetribe.git","ssh_url":"git@github.com:sharetribe/sharetribe.git","clone_url":"https://github.com/sharetribe/sharetribe.git","svn_url":"https://github.com/sharetribe/sharetribe","homepage":"https://www.sharetribe.com","size":105437,"stargazers_count":653,"watchers_count":653,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":449,"mirror_url":null,"open_issues_count":16,"forks":449,"open_issues":16,"watchers":653,"default_branch":"master"}},"base":{"label":"sharetribe:master","ref":"master","sha":"0ee6477c72739728e8386617e7c74f13c9604734","user":{"login":"sharetribe","id":1733898,"avatar_url":"https://avatars.githubusercontent.com/u/1733898?v=3","gravatar_id":"","url":"https://api.github.com/users/sharetribe","html_url":"https://github.com/sharetribe","followers_url":"https://api.github.com/users/sharetribe/followers","following_url":"https://api.github.com/users/sharetribe/following{/other_user}","gists_url":"https://api.github.com/users/sharetribe/gists{/gist_id}","starred_url":"https://api.github.com/users/sharetribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharetribe/subscriptions","organizations_url":"https://api.github.com/users/sharetribe/orgs","repos_url":"https://api.github.com/users/sharetribe/repos","events_url":"https://api.github.com/users/sharetribe/events{/privacy}","received_events_url":"https://api.github.com/users/sharetribe/received_events","type":"Organization","site_admin":false},"repo":{"id":4447023,"name":"sharetribe","full_name":"sharetribe/sharetribe","owner":{"login":"sharetribe","id":1733898,"avatar_url":"https://avatars.githubusercontent.com/u/1733898?v=3","gravatar_id":"","url":"https://api.github.com/users/sharetribe","html_url":"https://github.com/sharetribe","followers_url":"https://api.github.com/users/sharetribe/followers","following_url":"https://api.github.com/users/sharetribe/following{/other_user}","gists_url":"https://api.github.com/users/sharetribe/gists{/gist_id}","starred_url":"https://api.github.com/users/sharetribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharetribe/subscriptions","organizations_url":"https://api.github.com/users/sharetribe/orgs","repos_url":"https://api.github.com/users/sharetribe/repos","events_url":"https://api.github.com/users/sharetribe/events{/privacy}","received_events_url":"https://api.github.com/users/sharetribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sharetribe/sharetribe","description":"Open source marketplace platform","fork":false,"url":"https://api.github.com/repos/sharetribe/sharetribe","forks_url":"https://api.github.com/repos/sharetribe/sharetribe/forks","keys_url":"https://api.github.com/repos/sharetribe/sharetribe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sharetribe/sharetribe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sharetribe/sharetribe/teams","hooks_url":"https://api.github.com/repos/sharetribe/sharetribe/hooks","issue_events_url":"https://api.github.com/repos/sharetribe/sharetribe/issues/events{/number}","events_url":"https://api.github.com/repos/sharetribe/sharetribe/events","assignees_url":"https://api.github.com/repos/sharetribe/sharetribe/assignees{/user}","branches_url":"https://api.github.com/repos/sharetribe/sharetribe/branches{/branch}","tags_url":"https://api.github.com/repos/sharetribe/sharetribe/tags","blobs_url":"https://api.github.com/repos/sharetribe/sharetribe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sharetribe/sharetribe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sharetribe/sharetribe/git/refs{/sha}","trees_url":"https://api.github.com/repos/sharetribe/sharetribe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sharetribe/sharetribe/statuses/{sha}","languages_url":"https://api.github.com/repos/sharetribe/sharetribe/languages","stargazers_url":"https://api.github.com/repos/sharetribe/sharetribe/stargazers","contributors_url":"https://api.github.com/repos/sharetribe/sharetribe/contributors","subscribers_url":"https://api.github.com/repos/sharetribe/sharetribe/subscribers","subscription_url":"https://api.github.com/repos/sharetribe/sharetribe/subscription","commits_url":"https://api.github.com/repos/sharetribe/sharetribe/commits{/sha}","git_commits_url":"https://api.github.com/repos/sharetribe/sharetribe/git/commits{/sha}","comments_url":"https://api.github.com/repos/sharetribe/sharetribe/comments{/number}","issue_comment_url":"https://api.github.com/repos/sharetribe/sharetribe/issues/comments{/number}","contents_url":"https://api.github.com/repos/sharetribe/sharetribe/contents/{+path}","compare_url":"https://api.github.com/repos/sharetribe/sharetribe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sharetribe/sharetribe/merges","archive_url":"https://api.github.com/repos/sharetribe/sharetribe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sharetribe/sharetribe/downloads","issues_url":"https://api.github.com/repos/sharetribe/sharetribe/issues{/number}","pulls_url":"https://api.github.com/repos/sharetribe/sharetribe/pulls{/number}","milestones_url":"https://api.github.com/repos/sharetribe/sharetribe/milestones{/number}","notifications_url":"https://api.github.com/repos/sharetribe/sharetribe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sharetribe/sharetribe/labels{/name}","releases_url":"https://api.github.com/repos/sharetribe/sharetribe/releases{/id}","deployments_url":"https://api.github.com/repos/sharetribe/sharetribe/deployments","created_at":"2012-05-25T15:34:17Z","updated_at":"2016-06-13T17:56:51Z","pushed_at":"2016-06-15T06:12:06Z","git_url":"git://github.com/sharetribe/sharetribe.git","ssh_url":"git@github.com:sharetribe/sharetribe.git","clone_url":"https://github.com/sharetribe/sharetribe.git","svn_url":"https://github.com/sharetribe/sharetribe","homepage":"https://www.sharetribe.com","size":105437,"stargazers_count":653,"watchers_count":653,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":449,"mirror_url":null,"open_issues_count":16,"forks":449,"open_issues":16,"watchers":653,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sharetribe/sharetribe/pulls/2112"},"html":{"href":"https://github.com/sharetribe/sharetribe/pull/2112"},"issue":{"href":"https://api.github.com/repos/sharetribe/sharetribe/issues/2112"},"comments":{"href":"https://api.github.com/repos/sharetribe/sharetribe/issues/2112/comments"},"review_comments":{"href":"https://api.github.com/repos/sharetribe/sharetribe/pulls/2112/comments"},"review_comment":{"href":"https://api.github.com/repos/sharetribe/sharetribe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sharetribe/sharetribe/pulls/2112/commits"},"statuses":{"href":"https://api.github.com/repos/sharetribe/sharetribe/statuses/0aac5b5cb0adccaca947c6b7cba0f95fb4e7de0e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"kpuputti","id":53923,"avatar_url":"https://avatars.githubusercontent.com/u/53923?v=3","gravatar_id":"","url":"https://api.github.com/users/kpuputti","html_url":"https://github.com/kpuputti","followers_url":"https://api.github.com/users/kpuputti/followers","following_url":"https://api.github.com/users/kpuputti/following{/other_user}","gists_url":"https://api.github.com/users/kpuputti/gists{/gist_id}","starred_url":"https://api.github.com/users/kpuputti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpuputti/subscriptions","organizations_url":"https://api.github.com/users/kpuputti/orgs","repos_url":"https://api.github.com/users/kpuputti/repos","events_url":"https://api.github.com/users/kpuputti/events{/privacy}","received_events_url":"https://api.github.com/users/kpuputti/received_events","type":"User","site_admin":false},"comments":0,"review_comments":8,"commits":1,"additions":171,"deletions":9,"changed_files":3}}
{"actor":{"display_login":"kpuputti"}}