{"action":"opened","number":1604,"pull_request":{"url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/pulls/1604","id":236283157,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2MjgzMTU3","html_url":"https://github.com/mapbox/mapbox-navigation-android/pull/1604","diff_url":"https://github.com/mapbox/mapbox-navigation-android/pull/1604.diff","patch_url":"https://github.com/mapbox/mapbox-navigation-android/pull/1604.patch","issue_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/1604","number":1604,"state":"open","locked":false,"title":"Increment leg index upon way point arrival","user":{"login":"danesfeder","id":8434572,"node_id":"MDQ6VXNlcjg0MzQ1NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/8434572?v=4","gravatar_id":"","url":"https://api.github.com/users/danesfeder","html_url":"https://github.com/danesfeder","followers_url":"https://api.github.com/users/danesfeder/followers","following_url":"https://api.github.com/users/danesfeder/following{/other_user}","gists_url":"https://api.github.com/users/danesfeder/gists{/gist_id}","starred_url":"https://api.github.com/users/danesfeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danesfeder/subscriptions","organizations_url":"https://api.github.com/users/danesfeder/orgs","repos_url":"https://api.github.com/users/danesfeder/repos","events_url":"https://api.github.com/users/danesfeder/events{/privacy}","received_events_url":"https://api.github.com/users/danesfeder/received_events","type":"User","site_admin":false},"body":"Fixes #1487 \r\n\r\nWe currently do not increment the `RouteLeg` upon arrival of each way point along the route.  This essentially means we can only navigate from an origin to a destination with way points in between.  \r\n\r\nThis PR looks at a few criteria before incrementing the index and reseting the `NavigationStatus` with the new data.  ","created_at":"2018-12-05T18:48:00Z","updated_at":"2018-12-05T18:48:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"danesfeder","id":8434572,"node_id":"MDQ6VXNlcjg0MzQ1NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/8434572?v=4","gravatar_id":"","url":"https://api.github.com/users/danesfeder","html_url":"https://github.com/danesfeder","followers_url":"https://api.github.com/users/danesfeder/followers","following_url":"https://api.github.com/users/danesfeder/following{/other_user}","gists_url":"https://api.github.com/users/danesfeder/gists{/gist_id}","starred_url":"https://api.github.com/users/danesfeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danesfeder/subscriptions","organizations_url":"https://api.github.com/users/danesfeder/orgs","repos_url":"https://api.github.com/users/danesfeder/repos","events_url":"https://api.github.com/users/danesfeder/events{/privacy}","received_events_url":"https://api.github.com/users/danesfeder/received_events","type":"User","site_admin":false},"assignees":[{"login":"danesfeder","id":8434572,"node_id":"MDQ6VXNlcjg0MzQ1NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/8434572?v=4","gravatar_id":"","url":"https://api.github.com/users/danesfeder","html_url":"https://github.com/danesfeder","followers_url":"https://api.github.com/users/danesfeder/followers","following_url":"https://api.github.com/users/danesfeder/following{/other_user}","gists_url":"https://api.github.com/users/danesfeder/gists{/gist_id}","starred_url":"https://api.github.com/users/danesfeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danesfeder/subscriptions","organizations_url":"https://api.github.com/users/danesfeder/orgs","repos_url":"https://api.github.com/users/danesfeder/repos","events_url":"https://api.github.com/users/danesfeder/events{/privacy}","received_events_url":"https://api.github.com/users/danesfeder/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":578137002,"node_id":"MDU6TGFiZWw1NzgxMzcwMDI=","url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/labels/bug","name":"bug","color":"F44336","default":true},{"id":712480938,"node_id":"MDU6TGFiZWw3MTI0ODA5Mzg=","url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/labels/navigation-core","name":"navigation-core","color":"3F51B5","default":false},{"id":587339659,"node_id":"MDU6TGFiZWw1ODczMzk2NTk=","url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/labels/%E2%9C%93%20ready%20for%20review","name":"✓ ready for review","color":"4caf50","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/pulls/1604/commits","review_comments_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/pulls/1604/comments","review_comment_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/1604/comments","statuses_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/statuses/67f6dd86f31bcfc6d3f3913ac187277ab91b9c26","head":{"label":"mapbox:dan-leg-auto","ref":"dan-leg-auto","sha":"67f6dd86f31bcfc6d3f3913ac187277ab91b9c26","user":{"login":"mapbox","id":600935,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwMDkzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/600935?v=4","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":87455763,"node_id":"MDEwOlJlcG9zaXRvcnk4NzQ1NTc2Mw==","name":"mapbox-navigation-android","full_name":"mapbox/mapbox-navigation-android","private":false,"owner":{"login":"mapbox","id":600935,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwMDkzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/600935?v=4","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},"html_url":"https://github.com/mapbox/mapbox-navigation-android","description":"Mapbox Navigation SDK for Android","fork":false,"url":"https://api.github.com/repos/mapbox/mapbox-navigation-android","forks_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/forks","keys_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/teams","hooks_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/hooks","issue_events_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/events","assignees_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/tags","blobs_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/languages","stargazers_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/stargazers","contributors_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/contributors","subscribers_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/subscribers","subscription_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/subscription","commits_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/merges","archive_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/downloads","issues_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/releases{/id}","deployments_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/deployments","created_at":"2017-04-06T17:18:23Z","updated_at":"2018-12-05T17:51:46Z","pushed_at":"2018-12-05T18:45:01Z","git_url":"git://github.com/mapbox/mapbox-navigation-android.git","ssh_url":"git@github.com:mapbox/mapbox-navigation-android.git","clone_url":"https://github.com/mapbox/mapbox-navigation-android.git","svn_url":"https://github.com/mapbox/mapbox-navigation-android","homepage":"https://www.mapbox.com/android-docs/navigation/overview/","size":7571,"stargazers_count":169,"watchers_count":169,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":105,"mirror_url":null,"archived":false,"open_issues_count":81,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":105,"open_issues":81,"watchers":169,"default_branch":"master"}},"base":{"label":"mapbox:master","ref":"master","sha":"074a45231349c9f0a735704656ba368cf160abcc","user":{"login":"mapbox","id":600935,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwMDkzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/600935?v=4","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":87455763,"node_id":"MDEwOlJlcG9zaXRvcnk4NzQ1NTc2Mw==","name":"mapbox-navigation-android","full_name":"mapbox/mapbox-navigation-android","private":false,"owner":{"login":"mapbox","id":600935,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwMDkzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/600935?v=4","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},"html_url":"https://github.com/mapbox/mapbox-navigation-android","description":"Mapbox Navigation SDK for Android","fork":false,"url":"https://api.github.com/repos/mapbox/mapbox-navigation-android","forks_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/forks","keys_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/teams","hooks_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/hooks","issue_events_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/events","assignees_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/tags","blobs_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/languages","stargazers_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/stargazers","contributors_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/contributors","subscribers_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/subscribers","subscription_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/subscription","commits_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/merges","archive_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/downloads","issues_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/releases{/id}","deployments_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/deployments","created_at":"2017-04-06T17:18:23Z","updated_at":"2018-12-05T17:51:46Z","pushed_at":"2018-12-05T18:45:01Z","git_url":"git://github.com/mapbox/mapbox-navigation-android.git","ssh_url":"git@github.com:mapbox/mapbox-navigation-android.git","clone_url":"https://github.com/mapbox/mapbox-navigation-android.git","svn_url":"https://github.com/mapbox/mapbox-navigation-android","homepage":"https://www.mapbox.com/android-docs/navigation/overview/","size":7571,"stargazers_count":169,"watchers_count":169,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":105,"mirror_url":null,"archived":false,"open_issues_count":81,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":105,"open_issues":81,"watchers":169,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapbox/mapbox-navigation-android/pulls/1604"},"html":{"href":"https://github.com/mapbox/mapbox-navigation-android/pull/1604"},"issue":{"href":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/1604"},"comments":{"href":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/1604/comments"},"review_comments":{"href":"https://api.github.com/repos/mapbox/mapbox-navigation-android/pulls/1604/comments"},"review_comment":{"href":"https://api.github.com/repos/mapbox/mapbox-navigation-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapbox/mapbox-navigation-android/pulls/1604/commits"},"statuses":{"href":"https://api.github.com/repos/mapbox/mapbox-navigation-android/statuses/67f6dd86f31bcfc6d3f3913ac187277ab91b9c26"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":118,"deletions":1,"changed_files":3}}
{"actor":{"display_login":"danesfeder"}}