{"action":"created","comment":{"url":"https://api.github.com/repos/mapzen/TileStache/pulls/comments/40825925","id":40825925,"diff_hunk":"@@ -155,7 +155,9 @@ def remove_feature_id(shape, properties, fid, zoom):\n \n def building_kind(shape, properties, fid, zoom):\n     building = _coalesce(properties, 'building:part', 'building')\n-    if building and building != 'yes':\n+    if properties.kind:\n+        kind = properties.kind","path":"TileStache/Goodies/VecTiles/transform.py","position":6,"original_position":6,"commit_id":"16f6c9d6994203f8c2215697b1d8c694313c273d","original_commit_id":"16f6c9d6994203f8c2215697b1d8c694313c273d","user":{"login":"rmarianski","id":53770,"avatar_url":"https://avatars.githubusercontent.com/u/53770?v=3","gravatar_id":"","url":"https://api.github.com/users/rmarianski","html_url":"https://github.com/rmarianski","followers_url":"https://api.github.com/users/rmarianski/followers","following_url":"https://api.github.com/users/rmarianski/following{/other_user}","gists_url":"https://api.github.com/users/rmarianski/gists{/gist_id}","starred_url":"https://api.github.com/users/rmarianski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmarianski/subscriptions","organizations_url":"https://api.github.com/users/rmarianski/orgs","repos_url":"https://api.github.com/users/rmarianski/repos","events_url":"https://api.github.com/users/rmarianski/events{/privacy}","received_events_url":"https://api.github.com/users/rmarianski/received_events","type":"User","site_admin":false},"body":"Or maybe just bail out of the function early:\r\n\r\n```python\r\nkind = properties.get('kind')\r\nif kind:\r\n    return shape, properties, fid\r\n```\r\n","created_at":"2015-09-30T17:44:41Z","updated_at":"2015-09-30T17:44:41Z","html_url":"https://github.com/mapzen/TileStache/pull/59#discussion_r40825925","pull_request_url":"https://api.github.com/repos/mapzen/TileStache/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/mapzen/TileStache/pulls/comments/40825925"},"html":{"href":"https://github.com/mapzen/TileStache/pull/59#discussion_r40825925"},"pull_request":{"href":"https://api.github.com/repos/mapzen/TileStache/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/mapzen/TileStache/pulls/59","id":46421264,"html_url":"https://github.com/mapzen/TileStache/pull/59","diff_url":"https://github.com/mapzen/TileStache/pull/59.diff","patch_url":"https://github.com/mapzen/TileStache/pull/59.patch","issue_url":"https://api.github.com/repos/mapzen/TileStache/issues/59","number":59,"state":"open","locked":false,"title":"use kind property when provided","user":{"login":"nvkelso","id":853051,"avatar_url":"https://avatars.githubusercontent.com/u/853051?v=3","gravatar_id":"","url":"https://api.github.com/users/nvkelso","html_url":"https://github.com/nvkelso","followers_url":"https://api.github.com/users/nvkelso/followers","following_url":"https://api.github.com/users/nvkelso/following{/other_user}","gists_url":"https://api.github.com/users/nvkelso/gists{/gist_id}","starred_url":"https://api.github.com/users/nvkelso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvkelso/subscriptions","organizations_url":"https://api.github.com/users/nvkelso/orgs","repos_url":"https://api.github.com/users/nvkelso/repos","events_url":"https://api.github.com/users/nvkelso/events{/privacy}","received_events_url":"https://api.github.com/users/nvkelso/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-30T15:59:49Z","updated_at":"2015-09-30T17:44:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eede6dcda50887399dd4fd546ec4f4c65a6b62a8","assignee":{"login":"rmarianski","id":53770,"avatar_url":"https://avatars.githubusercontent.com/u/53770?v=3","gravatar_id":"","url":"https://api.github.com/users/rmarianski","html_url":"https://github.com/rmarianski","followers_url":"https://api.github.com/users/rmarianski/followers","following_url":"https://api.github.com/users/rmarianski/following{/other_user}","gists_url":"https://api.github.com/users/rmarianski/gists{/gist_id}","starred_url":"https://api.github.com/users/rmarianski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmarianski/subscriptions","organizations_url":"https://api.github.com/users/rmarianski/orgs","repos_url":"https://api.github.com/users/rmarianski/repos","events_url":"https://api.github.com/users/rmarianski/events{/privacy}","received_events_url":"https://api.github.com/users/rmarianski/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mapzen/TileStache/pulls/59/commits","review_comments_url":"https://api.github.com/repos/mapzen/TileStache/pulls/59/comments","review_comment_url":"https://api.github.com/repos/mapzen/TileStache/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapzen/TileStache/issues/59/comments","statuses_url":"https://api.github.com/repos/mapzen/TileStache/statuses/16f6c9d6994203f8c2215697b1d8c694313c273d","head":{"label":"mapzen:nvkelso/address-kind","ref":"nvkelso/address-kind","sha":"16f6c9d6994203f8c2215697b1d8c694313c273d","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":16214517,"name":"TileStache","full_name":"mapzen/TileStache","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/TileStache","description":"A stylish alternative for caching your map tiles.","fork":true,"url":"https://api.github.com/repos/mapzen/TileStache","forks_url":"https://api.github.com/repos/mapzen/TileStache/forks","keys_url":"https://api.github.com/repos/mapzen/TileStache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapzen/TileStache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapzen/TileStache/teams","hooks_url":"https://api.github.com/repos/mapzen/TileStache/hooks","issue_events_url":"https://api.github.com/repos/mapzen/TileStache/issues/events{/number}","events_url":"https://api.github.com/repos/mapzen/TileStache/events","assignees_url":"https://api.github.com/repos/mapzen/TileStache/assignees{/user}","branches_url":"https://api.github.com/repos/mapzen/TileStache/branches{/branch}","tags_url":"https://api.github.com/repos/mapzen/TileStache/tags","blobs_url":"https://api.github.com/repos/mapzen/TileStache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapzen/TileStache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapzen/TileStache/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapzen/TileStache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapzen/TileStache/statuses/{sha}","languages_url":"https://api.github.com/repos/mapzen/TileStache/languages","stargazers_url":"https://api.github.com/repos/mapzen/TileStache/stargazers","contributors_url":"https://api.github.com/repos/mapzen/TileStache/contributors","subscribers_url":"https://api.github.com/repos/mapzen/TileStache/subscribers","subscription_url":"https://api.github.com/repos/mapzen/TileStache/subscription","commits_url":"https://api.github.com/repos/mapzen/TileStache/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapzen/TileStache/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapzen/TileStache/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapzen/TileStache/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapzen/TileStache/contents/{+path}","compare_url":"https://api.github.com/repos/mapzen/TileStache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapzen/TileStache/merges","archive_url":"https://api.github.com/repos/mapzen/TileStache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapzen/TileStache/downloads","issues_url":"https://api.github.com/repos/mapzen/TileStache/issues{/number}","pulls_url":"https://api.github.com/repos/mapzen/TileStache/pulls{/number}","milestones_url":"https://api.github.com/repos/mapzen/TileStache/milestones{/number}","notifications_url":"https://api.github.com/repos/mapzen/TileStache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapzen/TileStache/labels{/name}","releases_url":"https://api.github.com/repos/mapzen/TileStache/releases{/id}","created_at":"2014-01-24T19:28:51Z","updated_at":"2015-09-17T14:53:34Z","pushed_at":"2015-09-30T16:49:47Z","git_url":"git://github.com/mapzen/TileStache.git","ssh_url":"git@github.com:mapzen/TileStache.git","clone_url":"https://github.com/mapzen/TileStache.git","svn_url":"https://github.com/mapzen/TileStache","homepage":"http://tilestache.org","size":6728,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":11,"forks":6,"open_issues":11,"watchers":15,"default_branch":"integration-1"}},"base":{"label":"mapzen:integration-1","ref":"integration-1","sha":"7ca4b5e2f87e6218522a981315e00c379d80bdc8","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":16214517,"name":"TileStache","full_name":"mapzen/TileStache","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/TileStache","description":"A stylish alternative for caching your map tiles.","fork":true,"url":"https://api.github.com/repos/mapzen/TileStache","forks_url":"https://api.github.com/repos/mapzen/TileStache/forks","keys_url":"https://api.github.com/repos/mapzen/TileStache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapzen/TileStache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapzen/TileStache/teams","hooks_url":"https://api.github.com/repos/mapzen/TileStache/hooks","issue_events_url":"https://api.github.com/repos/mapzen/TileStache/issues/events{/number}","events_url":"https://api.github.com/repos/mapzen/TileStache/events","assignees_url":"https://api.github.com/repos/mapzen/TileStache/assignees{/user}","branches_url":"https://api.github.com/repos/mapzen/TileStache/branches{/branch}","tags_url":"https://api.github.com/repos/mapzen/TileStache/tags","blobs_url":"https://api.github.com/repos/mapzen/TileStache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapzen/TileStache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapzen/TileStache/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapzen/TileStache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapzen/TileStache/statuses/{sha}","languages_url":"https://api.github.com/repos/mapzen/TileStache/languages","stargazers_url":"https://api.github.com/repos/mapzen/TileStache/stargazers","contributors_url":"https://api.github.com/repos/mapzen/TileStache/contributors","subscribers_url":"https://api.github.com/repos/mapzen/TileStache/subscribers","subscription_url":"https://api.github.com/repos/mapzen/TileStache/subscription","commits_url":"https://api.github.com/repos/mapzen/TileStache/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapzen/TileStache/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapzen/TileStache/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapzen/TileStache/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapzen/TileStache/contents/{+path}","compare_url":"https://api.github.com/repos/mapzen/TileStache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapzen/TileStache/merges","archive_url":"https://api.github.com/repos/mapzen/TileStache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapzen/TileStache/downloads","issues_url":"https://api.github.com/repos/mapzen/TileStache/issues{/number}","pulls_url":"https://api.github.com/repos/mapzen/TileStache/pulls{/number}","milestones_url":"https://api.github.com/repos/mapzen/TileStache/milestones{/number}","notifications_url":"https://api.github.com/repos/mapzen/TileStache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapzen/TileStache/labels{/name}","releases_url":"https://api.github.com/repos/mapzen/TileStache/releases{/id}","created_at":"2014-01-24T19:28:51Z","updated_at":"2015-09-17T14:53:34Z","pushed_at":"2015-09-30T16:49:47Z","git_url":"git://github.com/mapzen/TileStache.git","ssh_url":"git@github.com:mapzen/TileStache.git","clone_url":"https://github.com/mapzen/TileStache.git","svn_url":"https://github.com/mapzen/TileStache","homepage":"http://tilestache.org","size":6728,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":11,"forks":6,"open_issues":11,"watchers":15,"default_branch":"integration-1"}},"_links":{"self":{"href":"https://api.github.com/repos/mapzen/TileStache/pulls/59"},"html":{"href":"https://github.com/mapzen/TileStache/pull/59"},"issue":{"href":"https://api.github.com/repos/mapzen/TileStache/issues/59"},"comments":{"href":"https://api.github.com/repos/mapzen/TileStache/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/mapzen/TileStache/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/mapzen/TileStache/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapzen/TileStache/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/mapzen/TileStache/statuses/16f6c9d6994203f8c2215697b1d8c694313c273d"}}}}