Fix IndexedRouteResponse handling after rerouting#3344
Merged
Conversation
Contributor
|
Thanks for contributing this fix! This PR includes some additional debugging code that would need to be cleaned up, but I went ahead and rolled your commit into #3345, which also includes more substantial changes in this area. Please have a look at that PR. Hopefully we can land the whole thing soon, but if not, then we can clean up this PR and merge it instead. |
1ec5
reviewed
Sep 9, 2021
Contributor
There was a problem hiding this comment.
This is correct for now. #3345 will change the behavior of the method that this closure is passed into, so that the closest matching route will no longer be guaranteed to be at index 0; instead, the closure will receive the index of the closest matching route.
aba8a86 to
e39b112
Compare
1ec5
approved these changes
Sep 9, 2021
Contributor
|
Updated the changelog in e68d748. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reroute does not update
indexedRouteResponseand refresh uses old route's identifier to update route annotations. This provides unexpected speed limit, congestion information display.Detail
Reroute does not update
indexedRouteResponse.indexedRouteResponse.routeResponse.identifierrepresents route's identifier and used when refreshing.Therefore,
indexedRouteResponseneeds to be updated here.Screenshot
After the reroute, speed limit shows 90km/h but 1 min later it becomes 70km/h. This road is 90km/h and 70km/h is wrong.
repro_s.mp4
Expected behavior
expected_s.mp4