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

Recalculation gating #453

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Recalculation gating #453

merged 3 commits into from
Feb 11, 2025

Conversation

ianthetechie
Copy link
Contributor

This adds a new gate to prevent spurious recalculations. We'll avoid recalculating unless the user has moved by at least 50m (configurable threshold) from the last point that we triggered a recalculation

@ianthetechie
Copy link
Contributor Author

cc @ben-burwood

@ben-burwood
Copy link
Contributor

Funnily enough this is the exact thing I have been trialling in our app since we fell into that spiral last week! So definitely support this functionality being included in the SDK. Implementation as you have here looks good 👍

@Archdoog
Copy link
Collaborator

This is also likely part of the problem with #452. Many rapid re-routes blowing up the TTS queue.

@ianthetechie ianthetechie merged commit 73d61b2 into main Feb 11, 2025
14 checks passed
@ianthetechie ianthetechie deleted the recalculation-gating branch February 11, 2025 02:08
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.

3 participants