Skip to content

feat(analytics): add location anonymization service for map privacy#232

Merged
Cedarich merged 1 commit intoPulsefy:mainfrom
walterthesmart:fix-issue-222
Mar 30, 2026
Merged

feat(analytics): add location anonymization service for map privacy#232
Cedarich merged 1 commit intoPulsefy:mainfrom
walterthesmart:fix-issue-222

Conversation

@walterthesmart
Copy link
Copy Markdown
Contributor

Title: Location Anonymization Service for Map Privacy

Resolves #222

Tasks and Fixes Made

  1. Created PrivacyService:

    • Implemented an algorithm to fuzz geo-coordinates and protect the exact locations.
    • Using a deterministic hash based on coordinates to add an offset within a 500m to 1km radius limit.
    • Added logic to keep fuzzing consistent for the same location to prevent jumping.
  2. Backend Module Updating:

    • Implemented getMapAnonymizedData inside AnalyticsService formatting to standardized GeoJsonFeatureCollection.
    • Exposed GET /analytics/map-anonymized inside AnalyticsController.
  3. Data Transfer Objects (DTOs):

    • Built out GeoJsonFeature and GeoJsonFeatureCollection definition for the endpoint types.
  4. CI Checks Verified:

    • Nest.js backend tests passed smoothly without regressions.
    • Project dependencies correctly build.

Please review and merge.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@walterthesmart Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Cedarich Cedarich merged commit 8831b03 into Pulsefy:main Mar 30, 2026
1 check passed
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.

Location Anonymization Service for Map Privacy

2 participants