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

Improve the accuracy of auto-captured place visits #327

Merged
merged 4 commits into from
Dec 28, 2024

Conversation

MrHadiSatrio
Copy link
Owner

What has changed

This patch introduces a dynamic auto-capture vicinity threshold based on the accuracy of the coordinates. Auto-capture is now skipped if the coordinate accuracy is greater than 50 meters. Additionally, the place is corrected before checking for recency.

Why it was changed

These changes were implemented to improve the accuracy and efficiency of auto-capture (#313). The previous fixed threshold did not account for coordinate accuracy, potentially leading to duplicate moments being captured. By dynamically adjusting the threshold, we ensure that auto-capture is triggered only when the user is in close proximity to a known place. Correcting the place before the recency check ensures that the appropriate place is used in that check, further enhancing accuracy.

@MrHadiSatrio MrHadiSatrio force-pushed the feature/improved_autocapture branch from 437adc2 to d92aad3 Compare December 27, 2024 17:35
The `beenHereRecently` check was happening before the place was corrected to
a nearby known place. This could lead to duplicate visits being captured for
a single day, which we don't want.
Add the ability for coordinates to report their accuracy in meters.
Add a new check to skip auto-capturing moments when the accuracy of the
coordinates is greater than 50 meters.
Refactor the auto-capture vicinity threshold to be dynamic based on the accuracy
of the coordinates.
@MrHadiSatrio MrHadiSatrio force-pushed the feature/improved_autocapture branch from d92aad3 to 69b5c41 Compare December 28, 2024 07:07
@MrHadiSatrio MrHadiSatrio merged commit d739b5f into develop Dec 28, 2024
3 checks passed
@MrHadiSatrio MrHadiSatrio deleted the feature/improved_autocapture branch December 28, 2024 07:18
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.

1 participant