Skip to content

Truncate lat/lng to one decimal for privacy#833

Open
craig-seeman wants to merge 7 commits intocloudflare:mainfrom
craig-seeman:patch-1
Open

Truncate lat/lng to one decimal for privacy#833
craig-seeman wants to merge 7 commits intocloudflare:mainfrom
craig-seeman:patch-1

Conversation

@craig-seeman
Copy link

@craig-seeman craig-seeman commented Nov 26, 2025

Description

Fixes privacy concerns. The example is hosted on cf network / linked on official template pages and has the potential to leak rather exact lat/lon of unsuspecting users visiting the page. Truncates latitude and longitude to one decimal place, as the map does not need such granularity.

Checklist

  • Template Metadata
    • template directory ends with -template
    • "cloudflare" section of package.json is populated
    • template preview image uploaded to Images
    • README is populated and uses <!-- dash-content-start --> and <!-- dash-content-end --> to designate the Dash readme preview
    • .gitignore file exists
    • package.json contains a deploy command
    • package.json contains private: true and no version field

Example package.json

"private": true,
"cloudflare": {
  "label": "Worker + D1 Database",
  "products": [
    "Workers",
    "D1"
  ],
  "categories": [
    "storage"
  ],
  "docs_url": "https://developers.cloudflare.com/d1/",
  "preview_image_url": "https://imagedelivery.net/wSMYJvS3Xw-n339CbDyDIA/cb7cb0a9-6102-4822-633c-b76b7bb25900/public"
}

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