{"action":"created","issue":{"url":"https://api.github.com/repos/googlemaps/android-maps-utils/issues/201","labels_url":"https://api.github.com/repos/googlemaps/android-maps-utils/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/googlemaps/android-maps-utils/issues/201/comments","events_url":"https://api.github.com/repos/googlemaps/android-maps-utils/issues/201/events","html_url":"https://github.com/googlemaps/android-maps-utils/pull/201","id":106837999,"number":201,"title":"Add Douglas-Peucker poly simplification algorithm as PolyUtil.simplify()","user":{"login":"barbeau","id":928045,"avatar_url":"https://avatars.githubusercontent.com/u/928045?v=3","gravatar_id":"","url":"https://api.github.com/users/barbeau","html_url":"https://github.com/barbeau","followers_url":"https://api.github.com/users/barbeau/followers","following_url":"https://api.github.com/users/barbeau/following{/other_user}","gists_url":"https://api.github.com/users/barbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/barbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbeau/subscriptions","organizations_url":"https://api.github.com/users/barbeau/orgs","repos_url":"https://api.github.com/users/barbeau/repos","events_url":"https://api.github.com/users/barbeau/events{/privacy}","received_events_url":"https://api.github.com/users/barbeau/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-09-16T18:51:56Z","updated_at":"2015-09-18T00:57:50Z","closed_at":"2015-09-17T21:27:41Z","pull_request":{"url":"https://api.github.com/repos/googlemaps/android-maps-utils/pulls/201","html_url":"https://github.com/googlemaps/android-maps-utils/pull/201","diff_url":"https://github.com/googlemaps/android-maps-utils/pull/201.diff","patch_url":"https://github.com/googlemaps/android-maps-utils/pull/201.patch"},"body":"* Douglas-Peucker implementation ported from the Google MyTracks project (https://code.google.com/p/mytracks/source/browse/MyTracks/src/com/google/android/apps/mytracks/util/LocationUtils.java#81), (c) Google 2008, licensed under Apache v2.0.\r\n* Add demo activity for `PolyUtil.simplify()` - shows the original line in black, as well as simplified versions of the line with multiple tolerances in different colors\r\n* Add unit tests for `PolyUtil.simplify()` and `PolyUtil.distanceToLine()` in `PolyUtilTest`\r\n\r\nAs discussed with @broady in https://github.com/googlemaps/android-maps-utils/pull/144#issuecomment-140505017.\r\n\r\n@broady A few unrelated white space changes snuck into this commit via Android Studio - seems this happens on save, and I haven't found a way to disable it.  Let me know if this is an issue - I'm using the official Android code template."},"comment":{"url":"https://api.github.com/repos/googlemaps/android-maps-utils/issues/comments/141298282","html_url":"https://github.com/googlemaps/android-maps-utils/pull/201#issuecomment-141298282","issue_url":"https://api.github.com/repos/googlemaps/android-maps-utils/issues/201","id":141298282,"user":{"login":"barbeau","id":928045,"avatar_url":"https://avatars.githubusercontent.com/u/928045?v=3","gravatar_id":"","url":"https://api.github.com/users/barbeau","html_url":"https://github.com/barbeau","followers_url":"https://api.github.com/users/barbeau/followers","following_url":"https://api.github.com/users/barbeau/following{/other_user}","gists_url":"https://api.github.com/users/barbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/barbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbeau/subscriptions","organizations_url":"https://api.github.com/users/barbeau/orgs","repos_url":"https://api.github.com/users/barbeau/repos","events_url":"https://api.github.com/users/barbeau/events{/privacy}","received_events_url":"https://api.github.com/users/barbeau/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T00:57:50Z","updated_at":"2015-09-18T00:57:50Z","body":":+1: "}}