{"action":"opened","number":34,"pull_request":{"url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/pulls/34","id":48388815,"html_url":"https://github.com/mapbox/mapbox-sdk-py/pull/34","diff_url":"https://github.com/mapbox/mapbox-sdk-py/pull/34.diff","patch_url":"https://github.com/mapbox/mapbox-sdk-py/pull/34.patch","issue_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/issues/34","number":34,"state":"open","locked":false,"title":"Geometry encoding","user":{"login":"perrygeo","id":1151287,"avatar_url":"https://avatars.githubusercontent.com/u/1151287?v=3","gravatar_id":"","url":"https://api.github.com/users/perrygeo","html_url":"https://github.com/perrygeo","followers_url":"https://api.github.com/users/perrygeo/followers","following_url":"https://api.github.com/users/perrygeo/following{/other_user}","gists_url":"https://api.github.com/users/perrygeo/gists{/gist_id}","starred_url":"https://api.github.com/users/perrygeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perrygeo/subscriptions","organizations_url":"https://api.github.com/users/perrygeo/orgs","repos_url":"https://api.github.com/users/perrygeo/repos","events_url":"https://api.github.com/users/perrygeo/events{/privacy}","received_events_url":"https://api.github.com/users/perrygeo/received_events","type":"User","site_admin":false},"body":"Resolves #32 - see discussion there for initial discussion. The main advantage to this approach is that all API wrappers which require geometries as input can accept common python vector data structures. \r\n\r\nThis PR adds an `encoding` package providing a few useful functions, mainly `encode_waypoints` and `encode_polyline` which take iterables of feature-like objects and return data fit for posting to mapbox APIs.\r\n\r\nThere is a dependency on [polyline](https://github.com/bmcustodio-archive/polyline) which is a nice Python2/3 port of [mapbox/polyline](https://github.com/mapbox/polyline). The other option (gpolyencode) is not Python 3 compatible and doesn't give results consistent with mapbox/polyline (see [gist](https://gist.github.com/perrygeo/3684ca73e534601db0e7))","created_at":"2015-10-21T21:14:58Z","updated_at":"2015-10-21T21:14:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca0386181fc7b6c0e29a83f75f7d68cd692d3eb7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/pulls/34/commits","review_comments_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/pulls/34/comments","review_comment_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/issues/34/comments","statuses_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/statuses/fe33dd408279656c375339a39939137cdd64e91e","head":{"label":"mapbox:geom_encoding","ref":"geom_encoding","sha":"fe33dd408279656c375339a39939137cdd64e91e","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":39404445,"name":"mapbox-sdk-py","full_name":"mapbox/mapbox-sdk-py","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/mapbox-sdk-py","description":"Python SDK for Mapbox APIs","fork":false,"url":"https://api.github.com/repos/mapbox/mapbox-sdk-py","forks_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/forks","keys_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/teams","hooks_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/hooks","issue_events_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/events","assignees_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/tags","blobs_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/languages","stargazers_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/stargazers","contributors_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/contributors","subscribers_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/subscribers","subscription_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/subscription","commits_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/merges","archive_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/downloads","issues_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/releases{/id}","created_at":"2015-07-20T19:34:47Z","updated_at":"2015-09-15T11:57:08Z","pushed_at":"2015-10-21T21:14:58Z","git_url":"git://github.com/mapbox/mapbox-sdk-py.git","ssh_url":"git@github.com:mapbox/mapbox-sdk-py.git","clone_url":"https://github.com/mapbox/mapbox-sdk-py.git","svn_url":"https://github.com/mapbox/mapbox-sdk-py","homepage":null,"size":416,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":7,"default_branch":"master"}},"base":{"label":"mapbox:master","ref":"master","sha":"097c9b55b0e12692e0392680916e5717ec8c3c5b","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":39404445,"name":"mapbox-sdk-py","full_name":"mapbox/mapbox-sdk-py","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/mapbox-sdk-py","description":"Python SDK for Mapbox APIs","fork":false,"url":"https://api.github.com/repos/mapbox/mapbox-sdk-py","forks_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/forks","keys_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/teams","hooks_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/hooks","issue_events_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/events","assignees_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/tags","blobs_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/languages","stargazers_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/stargazers","contributors_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/contributors","subscribers_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/subscribers","subscription_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/subscription","commits_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/merges","archive_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/downloads","issues_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/mapbox-sdk-py/releases{/id}","created_at":"2015-07-20T19:34:47Z","updated_at":"2015-09-15T11:57:08Z","pushed_at":"2015-10-21T21:14:58Z","git_url":"git://github.com/mapbox/mapbox-sdk-py.git","ssh_url":"git@github.com:mapbox/mapbox-sdk-py.git","clone_url":"https://github.com/mapbox/mapbox-sdk-py.git","svn_url":"https://github.com/mapbox/mapbox-sdk-py","homepage":null,"size":416,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapbox/mapbox-sdk-py/pulls/34"},"html":{"href":"https://github.com/mapbox/mapbox-sdk-py/pull/34"},"issue":{"href":"https://api.github.com/repos/mapbox/mapbox-sdk-py/issues/34"},"comments":{"href":"https://api.github.com/repos/mapbox/mapbox-sdk-py/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/mapbox/mapbox-sdk-py/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/mapbox/mapbox-sdk-py/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapbox/mapbox-sdk-py/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/mapbox/mapbox-sdk-py/statuses/fe33dd408279656c375339a39939137cdd64e91e"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":190,"deletions":1,"changed_files":3}}