Skip to content

bugfix(centroid): fix precision loss from long to double#21

Merged
5k4nd merged 8 commits into
8.xfrom
bug/fix-cached-requests-centroid-precision-loss
Dec 2, 2025
Merged

bugfix(centroid): fix precision loss from long to double#21
5k4nd merged 8 commits into
8.xfrom
bug/fix-cached-requests-centroid-precision-loss

Conversation

@folkvir

@folkvir folkvir commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

Summary

The fix avoids loss precision when the data is coming from the cache.
Because we read the centroid as 2 long values and cast it as double in the GeoPoint.

@5k4nd 5k4nd marked this pull request as ready for review December 2, 2025 16:22
@5k4nd 5k4nd changed the base branch from master to 8.x December 2, 2025 16:22
@5k4nd 5k4nd merged commit dab6e7b into 8.x Dec 2, 2025
1 check passed
@5k4nd 5k4nd deleted the bug/fix-cached-requests-centroid-precision-loss branch December 2, 2025 17:57
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.

2 participants