Contribute to CAMPOP Places

GitHub repository

Use the Wikidata label?

Delete this place?

WHG API Token

Place-name suggestions come from the GB1900 gazetteer through the World Historical Gazetteer, whose search needs an API Token. Use your own: on your WHG profile, under API Token, choose Generate API Token and copy it.

Where the token is kept, and who else can read it. In this browser's localStorage for https://docuracy.github.io, which every GitHub Pages site published from the docuracy account shares: any page on any of them can read it. The token carries your WHG daily quota (every suggestion search is one call; the quota resets at midnight UTC), so anyone holding it can use that up. Forget it when you have finished.

It is sent only to whgazetteer.org, in an Authorization header, never in a URL, and is checked with one search when you enter it. A suggestion only moves the map: GB1900 is share-alike, so it is consulted, never copied into the data.

Commit access

This is a convenience, not a security boundary. This site is public: anyone can read this page, its source, and the place files it serves, whether or not the repository is private. The token protects nothing here from being seen; it only lets this page commit to the repository as you.

Where the token is kept, and who else can read it. In this browser's localStorage for https://docuracy.github.io. That storage belongs to the origin, not to this project: every GitHub Pages site published from the docuracy account shares it, so any page on any of those sites, or any script that manages to run on one, can read the token. Give it as little power and as short a life as will do, and forget it when you have finished.

The token must be

Create a fine-grained token on GitHub →

Checked before it is stored: that it is fine-grained, that GitHub accepts it, whose it is, that the account can push to this repository, and that the token itself can write — by storing one small git object that no branch or commit refers to, which changes nothing anyone can see. Not checkable from a web page: that the token is limited to this one repository, and when it expires. Those are yours to set.

Committing writes straight to main, with no pull request.

Checking whether this tool is open…

It is the same fine-grained token that commits to the repository: limited to docuracy/CAMPOP-Places, with Contents: Read and write. The gate is not a security boundary. This site is public, and so are the place files it serves; the gate only keeps the tool itself to people who can push to the repository while the repository is private.

Output

Drop a CSV or TSV here, or

How this works

The file stays in this browser: nothing is uploaded, though it is kept in this browser's storage so a reload does not lose your work. Rows that already carry a CAMPOP identifier are left alone; for the rest you are offered the five closest places. A row with no match can be turned into a new place, and the file comes back with the identifiers filled in. Opening another file sets this one aside with its decisions, to be resumed below.