Skip to content

Write each place's coordinates once; same-campus names are sameAs - #335

Merged
nstarman merged 1 commit into
mainfrom
places/shared-places
Oct 6, 2026
Merged

nstarman merged 1 commit into
mainfrom
places/shared-places

Conversation

@nstarman

@nstarman nstarman commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Changing code or schema

What and why: Follow-up to #334. config/places.json repeated coordinates for names that are the same campus, so the two could drift (and the Smithsonian Astrophysical Observatory entry was hand-copied "same place as" the CfA). Each coordinate is now written once.

  • An entry may be { "sameAs": "<other name>" }. src/lib/places.js (locate) is the one way the collaborator and conference maps read the file.
  • Thirteen names aliased: SAO → CfA; Caltech; Carnegie Observatories; CCA and the Simons Foundation → Flatiron; CESR → IRAP; Københavns Universitet; the two Heidelberg spellings; Bologna; CITA → Toronto; the two Chicago spellings; the Wisconsin typo; Rutgers.
  • Campus level, as discussed: Harvard, MIT, MPIK, CIFAR and Caltech/JPL keep their own coordinates, and the Smithsonian Institution stays in Washington, DC (the observatory is in Cambridge, MA).
  • tests/places.test.js fails on a sameAs that points nowhere or at a chain, and on two entries with the same coordinates. geocode-places.mjs and AGENTS.md describe the convention.

The map should look the same; a few pins moved by under 3 km.

  • npm test passes
  • No link.rel or type added; no schema change

Screenshots

The collaborator map on /research/.

JavaScript off

Collaborator map with JavaScript off

JavaScript on

Collaborator map with JavaScript on

🤖 Generated with Claude Code

13 names that were a second copy of another entry (SAO and the CfA, the
two spellings of Chicago, Bologna, Heidelberg, Copenhagen, ...) now point
at it with sameAs. A resolver, src/lib/places.js, is the one way the maps
read config/places.json, and a test fails on repeated coordinates.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nstarman nstarman added this to the ♾️&➡ milestone Oct 6, 2026
nstarman added a commit that referenced this pull request Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Preview: https://ea084fa8.nstarkman-space.pages.dev

Built from a6c29ab6baf0a1543df27857d713d4219c377639, including the four CV PDFs.
Updated on every push to this pull request.

@nstarman
nstarman merged commit a101a7e into main Oct 6, 2026
7 of 8 checks passed
@nstarman
nstarman deleted the places/shared-places branch October 6, 2026 06:38
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