GLAM-Workbench / glam-workbench.github.io

https://glam-workbench.github.io/
25 stars 6 forks source link

Package for working with the LoC Geographic Areas codes in Trove #67

Closed wragge closed 5 months ago

wragge commented 10 months ago

The spatial field in Trove metadata uses codes from the LoC Geographic Areas list. Getting the names is pretty easy just by copying the list from the LoC site (here's the list as JSON), but it'd be good to map to ISO codes, Geonames etc, and get the coordinates so Trove results could be displayed on a map.

I couldn't find anything that did this. The geographicAreas are used in Wikidata, so it might be possible to construct a query, though it might not be the complete list.

Not all the areas are countries, some are regions within countries and some are continents or broader areas, so not everything will map to ISO codes.

I had a quick go using the GeoNames search API and it seemed to get most of them, though would need manual checking/editing.

Perhaps create a basic dataset with the mappings, and package up with some code to make it easy to import and use?

wragge commented 5 months ago

Done. https://updates.timsherratt.org/2024/01/03/mapping-marc-geographic.html