{"action":"created","comment":{"url":"https://api.github.com/repos/mapzen/android/pulls/comments/94994964","pull_request_review_id":15539841,"id":94994964,"diff_hunk":"@@ -0,0 +1,81 @@\n+package com.mapzen.places.api.internal;\n+\n+import com.mapzen.pelias.Pelias;\n+import com.mapzen.pelias.gson.Feature;\n+import com.mapzen.pelias.gson.Result;\n+import com.mapzen.places.api.LatLng;\n+import com.mapzen.places.api.LatLngBounds;\n+import com.mapzen.places.api.Place;\n+import com.mapzen.tangram.LngLat;\n+\n+import android.net.Uri;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.Locale;\n+import java.util.Map;\n+\n+import static com.mapzen.places.api.internal.PlacePickerPresenterImpl.PROPERTY_NAME;\n+import retrofit2.Call;\n+import retrofit2.Callback;\n+import retrofit2.Response;\n+\n+/**\n+ * Detail fetcher which uses pelias as the backing data source.\n+ */\n+public class PeliasPlaceDetailFetcher implements PlaceDetailFetcher {\n+\n+  Pelias pelias;\n+  Feature feature;\n+  LngLat coordinates;\n+  Map<String, String> properties;","path":"mapzen-places-api/src/main/java/com/mapzen/places/api/internal/PeliasPlaceDetailFetcher.java","position":31,"original_position":31,"commit_id":"d0088c4eb6d7b379dcd7f51bb8039b776c71313a","original_commit_id":"d0088c4eb6d7b379dcd7f51bb8039b776c71313a","user":{"login":"ecgreb","id":464123,"avatar_url":"https://avatars.githubusercontent.com/u/464123?v=3","gravatar_id":"","url":"https://api.github.com/users/ecgreb","html_url":"https://github.com/ecgreb","followers_url":"https://api.github.com/users/ecgreb/followers","following_url":"https://api.github.com/users/ecgreb/following{/other_user}","gists_url":"https://api.github.com/users/ecgreb/gists{/gist_id}","starred_url":"https://api.github.com/users/ecgreb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecgreb/subscriptions","organizations_url":"https://api.github.com/users/ecgreb/orgs","repos_url":"https://api.github.com/users/ecgreb/repos","events_url":"https://api.github.com/users/ecgreb/events{/privacy}","received_events_url":"https://api.github.com/users/ecgreb/received_events","type":"User","site_admin":false},"body":"Can these fields be private?","created_at":"2017-01-06T18:33:43Z","updated_at":"2017-01-06T18:42:47Z","html_url":"https://github.com/mapzen/android/pull/236#discussion_r94994964","pull_request_url":"https://api.github.com/repos/mapzen/android/pulls/236","_links":{"self":{"href":"https://api.github.com/repos/mapzen/android/pulls/comments/94994964"},"html":{"href":"https://github.com/mapzen/android/pull/236#discussion_r94994964"},"pull_request":{"href":"https://api.github.com/repos/mapzen/android/pulls/236"}}},"pull_request":{"url":"https://api.github.com/repos/mapzen/android/pulls/236","id":100036760,"html_url":"https://github.com/mapzen/android/pull/236","diff_url":"https://github.com/mapzen/android/pull/236.diff","patch_url":"https://github.com/mapzen/android/pull/236.patch","issue_url":"https://api.github.com/repos/mapzen/android/issues/236","number":236,"state":"open","locked":false,"title":"Place picker details","user":{"login":"sarahlensing","id":494323,"avatar_url":"https://avatars.githubusercontent.com/u/494323?v=3","gravatar_id":"","url":"https://api.github.com/users/sarahlensing","html_url":"https://github.com/sarahlensing","followers_url":"https://api.github.com/users/sarahlensing/followers","following_url":"https://api.github.com/users/sarahlensing/following{/other_user}","gists_url":"https://api.github.com/users/sarahlensing/gists{/gist_id}","starred_url":"https://api.github.com/users/sarahlensing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarahlensing/subscriptions","organizations_url":"https://api.github.com/users/sarahlensing/orgs","repos_url":"https://api.github.com/users/sarahlensing/repos","events_url":"https://api.github.com/users/sarahlensing/events{/privacy}","received_events_url":"https://api.github.com/users/sarahlensing/received_events","type":"User","site_admin":false},"body":"### Overview\r\nThis PR adds support for the `PlacePicker` api which allows the user to select a place on the map and get details about it. It also adds an activity to demonstrate how to use the new api.\r\n\r\n### Proposed Changes\r\nI created an interface `PlaceDetailFetcher` to abstract the source we use to fetch details. Right now this is Pelias but will soon be changed to WOF.\r\n\r\nCloses #197 ","created_at":"2017-01-03T23:03:37Z","updated_at":"2017-01-06T18:42:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aad9fec6348ede1a5c11b985abb77247f6a811bf","assignee":{"login":"msmollin","id":1163880,"avatar_url":"https://avatars.githubusercontent.com/u/1163880?v=3","gravatar_id":"","url":"https://api.github.com/users/msmollin","html_url":"https://github.com/msmollin","followers_url":"https://api.github.com/users/msmollin/followers","following_url":"https://api.github.com/users/msmollin/following{/other_user}","gists_url":"https://api.github.com/users/msmollin/gists{/gist_id}","starred_url":"https://api.github.com/users/msmollin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msmollin/subscriptions","organizations_url":"https://api.github.com/users/msmollin/orgs","repos_url":"https://api.github.com/users/msmollin/repos","events_url":"https://api.github.com/users/msmollin/events{/privacy}","received_events_url":"https://api.github.com/users/msmollin/received_events","type":"User","site_admin":false},"assignees":[{"login":"msmollin","id":1163880,"avatar_url":"https://avatars.githubusercontent.com/u/1163880?v=3","gravatar_id":"","url":"https://api.github.com/users/msmollin","html_url":"https://github.com/msmollin","followers_url":"https://api.github.com/users/msmollin/followers","following_url":"https://api.github.com/users/msmollin/following{/other_user}","gists_url":"https://api.github.com/users/msmollin/gists{/gist_id}","starred_url":"https://api.github.com/users/msmollin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msmollin/subscriptions","organizations_url":"https://api.github.com/users/msmollin/orgs","repos_url":"https://api.github.com/users/msmollin/repos","events_url":"https://api.github.com/users/msmollin/events{/privacy}","received_events_url":"https://api.github.com/users/msmollin/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mapzen/android/pulls/236/commits","review_comments_url":"https://api.github.com/repos/mapzen/android/pulls/236/comments","review_comment_url":"https://api.github.com/repos/mapzen/android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapzen/android/issues/236/comments","statuses_url":"https://api.github.com/repos/mapzen/android/statuses/d0088c4eb6d7b379dcd7f51bb8039b776c71313a","head":{"label":"mapzen:place-picker-details","ref":"place-picker-details","sha":"d0088c4eb6d7b379dcd7f51bb8039b776c71313a","user":{"login":"mapzen","id":5435747,"avatar_url":"https://avatars.githubusercontent.com/u/5435747?v=3","gravatar_id":"","url":"https://api.github.com/users/mapzen","html_url":"https://github.com/mapzen","followers_url":"https://api.github.com/users/mapzen/followers","following_url":"https://api.github.com/users/mapzen/following{/other_user}","gists_url":"https://api.github.com/users/mapzen/gists{/gist_id}","starred_url":"https://api.github.com/users/mapzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapzen/subscriptions","organizations_url":"https://api.github.com/users/mapzen/orgs","repos_url":"https://api.github.com/users/mapzen/repos","events_url":"https://api.github.com/users/mapzen/events{/privacy}","received_events_url":"https://api.github.com/users/mapzen/received_events","type":"Organization","site_admin":false},"repo":{"id":46000465,"name":"android","full_name":"mapzen/android","owner":{"login":"mapzen","id":5435747,"avatar_url":"https://avatars.githubusercontent.com/u/5435747?v=3","gravatar_id":"","url":"https://api.github.com/users/mapzen","html_url":"https://github.com/mapzen","followers_url":"https://api.github.com/users/mapzen/followers","following_url":"https://api.github.com/users/mapzen/following{/other_user}","gists_url":"https://api.github.com/users/mapzen/gists{/gist_id}","starred_url":"https://api.github.com/users/mapzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapzen/subscriptions","organizations_url":"https://api.github.com/users/mapzen/orgs","repos_url":"https://api.github.com/users/mapzen/repos","events_url":"https://api.github.com/users/mapzen/events{/privacy}","received_events_url":"https://api.github.com/users/mapzen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapzen/android","description":"Where you can find everything Android from Mapzen","fork":false,"url":"https://api.github.com/repos/mapzen/android","forks_url":"https://api.github.com/repos/mapzen/android/forks","keys_url":"https://api.github.com/repos/mapzen/android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapzen/android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapzen/android/teams","hooks_url":"https://api.github.com/repos/mapzen/android/hooks","issue_events_url":"https://api.github.com/repos/mapzen/android/issues/events{/number}","events_url":"https://api.github.com/repos/mapzen/android/events","assignees_url":"https://api.github.com/repos/mapzen/android/assignees{/user}","branches_url":"https://api.github.com/repos/mapzen/android/branches{/branch}","tags_url":"https://api.github.com/repos/mapzen/android/tags","blobs_url":"https://api.github.com/repos/mapzen/android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapzen/android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapzen/android/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapzen/android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapzen/android/statuses/{sha}","languages_url":"https://api.github.com/repos/mapzen/android/languages","stargazers_url":"https://api.github.com/repos/mapzen/android/stargazers","contributors_url":"https://api.github.com/repos/mapzen/android/contributors","subscribers_url":"https://api.github.com/repos/mapzen/android/subscribers","subscription_url":"https://api.github.com/repos/mapzen/android/subscription","commits_url":"https://api.github.com/repos/mapzen/android/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapzen/android/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapzen/android/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapzen/android/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapzen/android/contents/{+path}","compare_url":"https://api.github.com/repos/mapzen/android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapzen/android/merges","archive_url":"https://api.github.com/repos/mapzen/android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapzen/android/downloads","issues_url":"https://api.github.com/repos/mapzen/android/issues{/number}","pulls_url":"https://api.github.com/repos/mapzen/android/pulls{/number}","milestones_url":"https://api.github.com/repos/mapzen/android/milestones{/number}","notifications_url":"https://api.github.com/repos/mapzen/android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapzen/android/labels{/name}","releases_url":"https://api.github.com/repos/mapzen/android/releases{/id}","deployments_url":"https://api.github.com/repos/mapzen/android/deployments","created_at":"2015-11-11T18:15:24Z","updated_at":"2016-12-23T17:50:00Z","pushed_at":"2017-01-05T18:02:57Z","git_url":"git://github.com/mapzen/android.git","ssh_url":"git@github.com:mapzen/android.git","clone_url":"https://github.com/mapzen/android.git","svn_url":"https://github.com/mapzen/android","homepage":"http://mapzen.github.io/android/","size":833,"stargazers_count":23,"watchers_count":23,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":32,"forks":11,"open_issues":32,"watchers":23,"default_branch":"master"}},"base":{"label":"mapzen:master","ref":"master","sha":"372cf8b439c74122086bbc7ce3b1ce660848cfdf","user":{"login":"mapzen","id":5435747,"avatar_url":"https://avatars.githubusercontent.com/u/5435747?v=3","gravatar_id":"","url":"https://api.github.com/users/mapzen","html_url":"https://github.com/mapzen","followers_url":"https://api.github.com/users/mapzen/followers","following_url":"https://api.github.com/users/mapzen/following{/other_user}","gists_url":"https://api.github.com/users/mapzen/gists{/gist_id}","starred_url":"https://api.github.com/users/mapzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapzen/subscriptions","organizations_url":"https://api.github.com/users/mapzen/orgs","repos_url":"https://api.github.com/users/mapzen/repos","events_url":"https://api.github.com/users/mapzen/events{/privacy}","received_events_url":"https://api.github.com/users/mapzen/received_events","type":"Organization","site_admin":false},"repo":{"id":46000465,"name":"android","full_name":"mapzen/android","owner":{"login":"mapzen","id":5435747,"avatar_url":"https://avatars.githubusercontent.com/u/5435747?v=3","gravatar_id":"","url":"https://api.github.com/users/mapzen","html_url":"https://github.com/mapzen","followers_url":"https://api.github.com/users/mapzen/followers","following_url":"https://api.github.com/users/mapzen/following{/other_user}","gists_url":"https://api.github.com/users/mapzen/gists{/gist_id}","starred_url":"https://api.github.com/users/mapzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapzen/subscriptions","organizations_url":"https://api.github.com/users/mapzen/orgs","repos_url":"https://api.github.com/users/mapzen/repos","events_url":"https://api.github.com/users/mapzen/events{/privacy}","received_events_url":"https://api.github.com/users/mapzen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapzen/android","description":"Where you can find everything Android from Mapzen","fork":false,"url":"https://api.github.com/repos/mapzen/android","forks_url":"https://api.github.com/repos/mapzen/android/forks","keys_url":"https://api.github.com/repos/mapzen/android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapzen/android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapzen/android/teams","hooks_url":"https://api.github.com/repos/mapzen/android/hooks","issue_events_url":"https://api.github.com/repos/mapzen/android/issues/events{/number}","events_url":"https://api.github.com/repos/mapzen/android/events","assignees_url":"https://api.github.com/repos/mapzen/android/assignees{/user}","branches_url":"https://api.github.com/repos/mapzen/android/branches{/branch}","tags_url":"https://api.github.com/repos/mapzen/android/tags","blobs_url":"https://api.github.com/repos/mapzen/android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapzen/android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapzen/android/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapzen/android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapzen/android/statuses/{sha}","languages_url":"https://api.github.com/repos/mapzen/android/languages","stargazers_url":"https://api.github.com/repos/mapzen/android/stargazers","contributors_url":"https://api.github.com/repos/mapzen/android/contributors","subscribers_url":"https://api.github.com/repos/mapzen/android/subscribers","subscription_url":"https://api.github.com/repos/mapzen/android/subscription","commits_url":"https://api.github.com/repos/mapzen/android/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapzen/android/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapzen/android/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapzen/android/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapzen/android/contents/{+path}","compare_url":"https://api.github.com/repos/mapzen/android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapzen/android/merges","archive_url":"https://api.github.com/repos/mapzen/android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapzen/android/downloads","issues_url":"https://api.github.com/repos/mapzen/android/issues{/number}","pulls_url":"https://api.github.com/repos/mapzen/android/pulls{/number}","milestones_url":"https://api.github.com/repos/mapzen/android/milestones{/number}","notifications_url":"https://api.github.com/repos/mapzen/android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapzen/android/labels{/name}","releases_url":"https://api.github.com/repos/mapzen/android/releases{/id}","deployments_url":"https://api.github.com/repos/mapzen/android/deployments","created_at":"2015-11-11T18:15:24Z","updated_at":"2016-12-23T17:50:00Z","pushed_at":"2017-01-05T18:02:57Z","git_url":"git://github.com/mapzen/android.git","ssh_url":"git@github.com:mapzen/android.git","clone_url":"https://github.com/mapzen/android.git","svn_url":"https://github.com/mapzen/android","homepage":"http://mapzen.github.io/android/","size":833,"stargazers_count":23,"watchers_count":23,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":32,"forks":11,"open_issues":32,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapzen/android/pulls/236"},"html":{"href":"https://github.com/mapzen/android/pull/236"},"issue":{"href":"https://api.github.com/repos/mapzen/android/issues/236"},"comments":{"href":"https://api.github.com/repos/mapzen/android/issues/236/comments"},"review_comments":{"href":"https://api.github.com/repos/mapzen/android/pulls/236/comments"},"review_comment":{"href":"https://api.github.com/repos/mapzen/android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapzen/android/pulls/236/commits"},"statuses":{"href":"https://api.github.com/repos/mapzen/android/statuses/d0088c4eb6d7b379dcd7f51bb8039b776c71313a"}}}}
{"actor":{"display_login":"ecgreb"}}