Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix subtle bug in setSimulatedRoute #266

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

ianthetechie
Copy link
Contributor

When responding to a question on Slack about how to "reset" trip simulation, I realized that setSimulatedRoute does not immediately set lastLocation, and further that startNavigation assumes that lastLocation will be up to date. This would cause issues during simulation as the first state would be wrong (user's location at the end of the route and wildly off course) after a reset unless you explicitly set lastLocation. The demo app currently does this, which is why it works.

@ianthetechie ianthetechie added the bug Something isn't working label Sep 25, 2024
@ianthetechie ianthetechie merged commit 1d4b7b4 into main Sep 25, 2024
14 checks passed
@ianthetechie ianthetechie deleted the set-simulated-route-last-location branch September 25, 2024 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants