{"action":"created","comment":{"url":"https://api.github.com/repos/python-visualization/folium/pulls/comments/48249097","id":48249097,"diff_hunk":"@@ -428,3 +428,37 @@ def _locations_tolist(x):\n         return list(map(_locations_tolist, x))\n     else:\n         return x\n+\n+def none_min(x,y):\n+    if x is None:\n+        return y\n+    elif y is None:\n+        return x\n+    else:\n+        return min(x,y)\n+\n+def none_max(x,y):\n+    if x is None:\n+        return y\n+    elif y is None:\n+        return x\n+    else:\n+        return max(x,y)\n+\n+def iter_points(x):\n+    \"\"\"Iterates over a list representing a feature, and returns a list of points,\n+    whatever the shape of the array (Point, MultiPolyline, etc).\n+    \"\"\"\n+    if isinstance(x,list):\n+        if len(x):\n+            if isinstance(x[0],list):\n+                out = []\n+                for y in x:\n+                    out += iter_points(y)\n+                return out\n+            else:\n+                return [x]\n+        else:\n+            return []\n+    else:\n+        raise ValueError('List type expected {!r}'.format(x))","path":"folium/utilities.py","position":37,"original_position":37,"commit_id":"ab0b7a01c8bfd22c8c1fc577c03af089d7e1a9f4","original_commit_id":"d70db116dcc6482a28fb6bc7238d05b3843d7d49","user":{"login":"BibMartin","id":4586863,"avatar_url":"https://avatars.githubusercontent.com/u/4586863?v=3","gravatar_id":"","url":"https://api.github.com/users/BibMartin","html_url":"https://github.com/BibMartin","followers_url":"https://api.github.com/users/BibMartin/followers","following_url":"https://api.github.com/users/BibMartin/following{/other_user}","gists_url":"https://api.github.com/users/BibMartin/gists{/gist_id}","starred_url":"https://api.github.com/users/BibMartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BibMartin/subscriptions","organizations_url":"https://api.github.com/users/BibMartin/orgs","repos_url":"https://api.github.com/users/BibMartin/repos","events_url":"https://api.github.com/users/BibMartin/events{/privacy}","received_events_url":"https://api.github.com/users/BibMartin/received_events","type":"User","site_admin":false},"body":"ok, I'll do it\r\n","created_at":"2015-12-22T12:35:25Z","updated_at":"2015-12-22T12:35:25Z","html_url":"https://github.com/python-visualization/folium/pull/305#discussion_r48249097","pull_request_url":"https://api.github.com/repos/python-visualization/folium/pulls/305","_links":{"self":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/comments/48249097"},"html":{"href":"https://github.com/python-visualization/folium/pull/305#discussion_r48249097"},"pull_request":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/305"}}},"pull_request":{"url":"https://api.github.com/repos/python-visualization/folium/pulls/305","id":54332548,"html_url":"https://github.com/python-visualization/folium/pull/305","diff_url":"https://github.com/python-visualization/folium/pull/305.diff","patch_url":"https://github.com/python-visualization/folium/pull/305.patch","issue_url":"https://api.github.com/repos/python-visualization/folium/issues/305","number":305,"state":"open","locked":false,"title":"Bounds","user":{"login":"BibMartin","id":4586863,"avatar_url":"https://avatars.githubusercontent.com/u/4586863?v=3","gravatar_id":"","url":"https://api.github.com/users/BibMartin","html_url":"https://github.com/BibMartin","followers_url":"https://api.github.com/users/BibMartin/followers","following_url":"https://api.github.com/users/BibMartin/following{/other_user}","gists_url":"https://api.github.com/users/BibMartin/gists{/gist_id}","starred_url":"https://api.github.com/users/BibMartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BibMartin/subscriptions","organizations_url":"https://api.github.com/users/BibMartin/orgs","repos_url":"https://api.github.com/users/BibMartin/repos","events_url":"https://api.github.com/users/BibMartin/events{/privacy}","received_events_url":"https://api.github.com/users/BibMartin/received_events","type":"User","site_admin":false},"body":"Not finished. Adresses #139","created_at":"2015-12-22T04:45:48Z","updated_at":"2015-12-22T12:35:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a331d6a530bf426b0336fb1192d86834251148a6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/python-visualization/folium/pulls/305/commits","review_comments_url":"https://api.github.com/repos/python-visualization/folium/pulls/305/comments","review_comment_url":"https://api.github.com/repos/python-visualization/folium/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python-visualization/folium/issues/305/comments","statuses_url":"https://api.github.com/repos/python-visualization/folium/statuses/ab0b7a01c8bfd22c8c1fc577c03af089d7e1a9f4","head":{"label":"BibMartin:bounds","ref":"bounds","sha":"ab0b7a01c8bfd22c8c1fc577c03af089d7e1a9f4","user":{"login":"BibMartin","id":4586863,"avatar_url":"https://avatars.githubusercontent.com/u/4586863?v=3","gravatar_id":"","url":"https://api.github.com/users/BibMartin","html_url":"https://github.com/BibMartin","followers_url":"https://api.github.com/users/BibMartin/followers","following_url":"https://api.github.com/users/BibMartin/following{/other_user}","gists_url":"https://api.github.com/users/BibMartin/gists{/gist_id}","starred_url":"https://api.github.com/users/BibMartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BibMartin/subscriptions","organizations_url":"https://api.github.com/users/BibMartin/orgs","repos_url":"https://api.github.com/users/BibMartin/repos","events_url":"https://api.github.com/users/BibMartin/events{/privacy}","received_events_url":"https://api.github.com/users/BibMartin/received_events","type":"User","site_admin":false},"repo":{"id":38824661,"name":"folium","full_name":"BibMartin/folium","owner":{"login":"BibMartin","id":4586863,"avatar_url":"https://avatars.githubusercontent.com/u/4586863?v=3","gravatar_id":"","url":"https://api.github.com/users/BibMartin","html_url":"https://github.com/BibMartin","followers_url":"https://api.github.com/users/BibMartin/followers","following_url":"https://api.github.com/users/BibMartin/following{/other_user}","gists_url":"https://api.github.com/users/BibMartin/gists{/gist_id}","starred_url":"https://api.github.com/users/BibMartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BibMartin/subscriptions","organizations_url":"https://api.github.com/users/BibMartin/orgs","repos_url":"https://api.github.com/users/BibMartin/repos","events_url":"https://api.github.com/users/BibMartin/events{/privacy}","received_events_url":"https://api.github.com/users/BibMartin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BibMartin/folium","description":"Python Data. Leaflet.js Maps. ","fork":true,"url":"https://api.github.com/repos/BibMartin/folium","forks_url":"https://api.github.com/repos/BibMartin/folium/forks","keys_url":"https://api.github.com/repos/BibMartin/folium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BibMartin/folium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BibMartin/folium/teams","hooks_url":"https://api.github.com/repos/BibMartin/folium/hooks","issue_events_url":"https://api.github.com/repos/BibMartin/folium/issues/events{/number}","events_url":"https://api.github.com/repos/BibMartin/folium/events","assignees_url":"https://api.github.com/repos/BibMartin/folium/assignees{/user}","branches_url":"https://api.github.com/repos/BibMartin/folium/branches{/branch}","tags_url":"https://api.github.com/repos/BibMartin/folium/tags","blobs_url":"https://api.github.com/repos/BibMartin/folium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BibMartin/folium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BibMartin/folium/git/refs{/sha}","trees_url":"https://api.github.com/repos/BibMartin/folium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BibMartin/folium/statuses/{sha}","languages_url":"https://api.github.com/repos/BibMartin/folium/languages","stargazers_url":"https://api.github.com/repos/BibMartin/folium/stargazers","contributors_url":"https://api.github.com/repos/BibMartin/folium/contributors","subscribers_url":"https://api.github.com/repos/BibMartin/folium/subscribers","subscription_url":"https://api.github.com/repos/BibMartin/folium/subscription","commits_url":"https://api.github.com/repos/BibMartin/folium/commits{/sha}","git_commits_url":"https://api.github.com/repos/BibMartin/folium/git/commits{/sha}","comments_url":"https://api.github.com/repos/BibMartin/folium/comments{/number}","issue_comment_url":"https://api.github.com/repos/BibMartin/folium/issues/comments{/number}","contents_url":"https://api.github.com/repos/BibMartin/folium/contents/{+path}","compare_url":"https://api.github.com/repos/BibMartin/folium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BibMartin/folium/merges","archive_url":"https://api.github.com/repos/BibMartin/folium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BibMartin/folium/downloads","issues_url":"https://api.github.com/repos/BibMartin/folium/issues{/number}","pulls_url":"https://api.github.com/repos/BibMartin/folium/pulls{/number}","milestones_url":"https://api.github.com/repos/BibMartin/folium/milestones{/number}","notifications_url":"https://api.github.com/repos/BibMartin/folium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BibMartin/folium/labels{/name}","releases_url":"https://api.github.com/repos/BibMartin/folium/releases{/id}","created_at":"2015-07-09T14:17:55Z","updated_at":"2015-07-09T14:17:56Z","pushed_at":"2015-12-22T12:35:11Z","git_url":"git://github.com/BibMartin/folium.git","ssh_url":"git@github.com:BibMartin/folium.git","clone_url":"https://github.com/BibMartin/folium.git","svn_url":"https://github.com/BibMartin/folium","homepage":"","size":17516,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"python-visualization:master","ref":"master","sha":"7ec30b786e3447de9773b3f60d841c28c0714b55","user":{"login":"python-visualization","id":9969242,"avatar_url":"https://avatars.githubusercontent.com/u/9969242?v=3","gravatar_id":"","url":"https://api.github.com/users/python-visualization","html_url":"https://github.com/python-visualization","followers_url":"https://api.github.com/users/python-visualization/followers","following_url":"https://api.github.com/users/python-visualization/following{/other_user}","gists_url":"https://api.github.com/users/python-visualization/gists{/gist_id}","starred_url":"https://api.github.com/users/python-visualization/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-visualization/subscriptions","organizations_url":"https://api.github.com/users/python-visualization/orgs","repos_url":"https://api.github.com/users/python-visualization/repos","events_url":"https://api.github.com/users/python-visualization/events{/privacy}","received_events_url":"https://api.github.com/users/python-visualization/received_events","type":"Organization","site_admin":false},"repo":{"id":9952134,"name":"folium","full_name":"python-visualization/folium","owner":{"login":"python-visualization","id":9969242,"avatar_url":"https://avatars.githubusercontent.com/u/9969242?v=3","gravatar_id":"","url":"https://api.github.com/users/python-visualization","html_url":"https://github.com/python-visualization","followers_url":"https://api.github.com/users/python-visualization/followers","following_url":"https://api.github.com/users/python-visualization/following{/other_user}","gists_url":"https://api.github.com/users/python-visualization/gists{/gist_id}","starred_url":"https://api.github.com/users/python-visualization/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-visualization/subscriptions","organizations_url":"https://api.github.com/users/python-visualization/orgs","repos_url":"https://api.github.com/users/python-visualization/repos","events_url":"https://api.github.com/users/python-visualization/events{/privacy}","received_events_url":"https://api.github.com/users/python-visualization/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python-visualization/folium","description":"Python Data. Leaflet.js Maps. ","fork":false,"url":"https://api.github.com/repos/python-visualization/folium","forks_url":"https://api.github.com/repos/python-visualization/folium/forks","keys_url":"https://api.github.com/repos/python-visualization/folium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python-visualization/folium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python-visualization/folium/teams","hooks_url":"https://api.github.com/repos/python-visualization/folium/hooks","issue_events_url":"https://api.github.com/repos/python-visualization/folium/issues/events{/number}","events_url":"https://api.github.com/repos/python-visualization/folium/events","assignees_url":"https://api.github.com/repos/python-visualization/folium/assignees{/user}","branches_url":"https://api.github.com/repos/python-visualization/folium/branches{/branch}","tags_url":"https://api.github.com/repos/python-visualization/folium/tags","blobs_url":"https://api.github.com/repos/python-visualization/folium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python-visualization/folium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python-visualization/folium/git/refs{/sha}","trees_url":"https://api.github.com/repos/python-visualization/folium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python-visualization/folium/statuses/{sha}","languages_url":"https://api.github.com/repos/python-visualization/folium/languages","stargazers_url":"https://api.github.com/repos/python-visualization/folium/stargazers","contributors_url":"https://api.github.com/repos/python-visualization/folium/contributors","subscribers_url":"https://api.github.com/repos/python-visualization/folium/subscribers","subscription_url":"https://api.github.com/repos/python-visualization/folium/subscription","commits_url":"https://api.github.com/repos/python-visualization/folium/commits{/sha}","git_commits_url":"https://api.github.com/repos/python-visualization/folium/git/commits{/sha}","comments_url":"https://api.github.com/repos/python-visualization/folium/comments{/number}","issue_comment_url":"https://api.github.com/repos/python-visualization/folium/issues/comments{/number}","contents_url":"https://api.github.com/repos/python-visualization/folium/contents/{+path}","compare_url":"https://api.github.com/repos/python-visualization/folium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python-visualization/folium/merges","archive_url":"https://api.github.com/repos/python-visualization/folium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python-visualization/folium/downloads","issues_url":"https://api.github.com/repos/python-visualization/folium/issues{/number}","pulls_url":"https://api.github.com/repos/python-visualization/folium/pulls{/number}","milestones_url":"https://api.github.com/repos/python-visualization/folium/milestones{/number}","notifications_url":"https://api.github.com/repos/python-visualization/folium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python-visualization/folium/labels{/name}","releases_url":"https://api.github.com/repos/python-visualization/folium/releases{/id}","created_at":"2013-05-09T04:21:35Z","updated_at":"2015-12-21T23:34:12Z","pushed_at":"2015-12-22T12:35:11Z","git_url":"git://github.com/python-visualization/folium.git","ssh_url":"git@github.com:python-visualization/folium.git","clone_url":"https://github.com/python-visualization/folium.git","svn_url":"https://github.com/python-visualization/folium","homepage":"","size":17959,"stargazers_count":926,"watchers_count":926,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":132,"mirror_url":null,"open_issues_count":41,"forks":132,"open_issues":41,"watchers":926,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/305"},"html":{"href":"https://github.com/python-visualization/folium/pull/305"},"issue":{"href":"https://api.github.com/repos/python-visualization/folium/issues/305"},"comments":{"href":"https://api.github.com/repos/python-visualization/folium/issues/305/comments"},"review_comments":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/305/comments"},"review_comment":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python-visualization/folium/pulls/305/commits"},"statuses":{"href":"https://api.github.com/repos/python-visualization/folium/statuses/ab0b7a01c8bfd22c8c1fc577c03af089d7e1a9f4"}}}}