Skip to content

fix(data): replace 13 literal lat,lng gmaps_links (#229) - #235

Merged
shauryagangrade merged 1 commit into
mainfrom
fix/229-fix-latlng-gmaps-links
Sep 7, 2026
Merged

fix(data): replace 13 literal lat,lng gmaps_links (#229)#235
shauryagangrade merged 1 commit into
mainfrom
fix/229-fix-latlng-gmaps-links

Conversation

@shauryagangrade

Copy link
Copy Markdown
Member

Summary

  • Replaces the 13 literal gmaps_link: "https://maps.google.com/?q=lat,lng" placeholders in sat_centre.json with each record's own coordinates.
  • Adds a validation check so a gmaps_link still containing the raw lat,lng placeholder now fails npm run validate:places, instead of silently passing the URL-pattern check.

Fixes #229

Validation

  • npm run validate:places passes with 0 errors and 0 warnings on the affected file.

Notes

  • The in-repo helper script scripts/fix-229-latlng-gmaps.mjs was used to do the replacement deterministically from the existing lat/lng values. It is a one-off fix script, not a long-lived tool, so I have not added it to the repo yet.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff noreply@codebuff.com

@vercel

vercel Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
study-map Ready Ready Preview Sep 7, 2026 7:29am UTC

…ates

The 13 UK SAT centres in `sat_centre.json` still had
`gmaps_link: "https://maps.google.com/?q=lat,lng"` from the record-shape
template, while their `lat`/`lng` fields were correct. Fill each link with
that record's own coordinates.

Also harden `validate-places.mjs` so the same bug can't ship again: a
`gmaps_link` that still contains the literal `lat,lng` placeholder now
fails validation (it previously passed the URL-pattern check).

Fixes #229

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@shauryagangrade
shauryagangrade force-pushed the fix/229-fix-latlng-gmaps-links branch from 6738e72 to c884b9f Compare September 7, 2026 07:28
@shauryagangrade
shauryagangrade merged commit 68b2f69 into main Sep 7, 2026
6 checks passed
@shauryagangrade
shauryagangrade deleted the fix/229-fix-latlng-gmaps-links branch September 7, 2026 07:30
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.

data: 13 UK SAT centres have a literal unfilled "lat,lng" placeholder gmaps_link

1 participant