Skip to content

make use of fixed duration for non tracking statuses#1437

Merged
danesfeder merged 2 commits into
masterfrom
kk_nn3.2.0
Oct 18, 2018
Merged

make use of fixed duration for non tracking statuses#1437
danesfeder merged 2 commits into
masterfrom
kk_nn3.2.0

Conversation

@kevinkreiser
Copy link
Copy Markdown
Contributor

fixes #1404

This uses the latest native release to fix the issue regarding ETA when the user isn't navigating on the route, either after having just loaded the road (initialized status), just having completed the route (complete status) or having gone off route (offroute status). The initialized status will hold a duration that is that of the entire loaded route leg and will update once you beging tracking on the route. For complete the duration will be 0 and for off route the duration should be the last duration you saw before you went off route.

Copy link
Copy Markdown
Contributor

@danesfeder danesfeder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kevinkreiser awesome thanks for taking care of this!


private static final int ONE_INDEX = 1;
private static final long ONE_SECOND_IN_MILLISECONDS = 1000L;
private static final double ONE_SECOND_IN_MILLISECONDS = 1000.0;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using double here so we dont truncate below. not sure if we really need subsecond accuracy, but its there if we need 😄

@danesfeder danesfeder merged commit 2fa308a into master Oct 18, 2018
@danesfeder danesfeder deleted the kk_nn3.2.0 branch October 18, 2018 22:19
@danesfeder danesfeder mentioned this pull request Oct 24, 2018
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect ETA since Navigation SDK 20

2 participants