Record the geo decisions: open sources first, postort locality, selection by key or name, SE and US for v0.1.0

This commit is contained in:
2026-09-17 07:51:01 +02:00
parent 2fa5f3c5ec
commit e50d3f7ffc
+10 -8
View File
@@ -19,9 +19,12 @@ node, so real-world tables cannot ship as nested JSON objects.
cell token. cell token.
- Reject a choice of same-shaped templates naming the table spelling, and convert - Reject a choice of same-shaped templates naming the table spelling, and convert
`misc.country`, `currency`, `language`, `httpstatus`, `mimetype`, `timezone`, `car`. `misc.country`, `currency`, `language`, `httpstatus`, `mimetype`, `timezone`, `car`.
- Let a path select a row by key, `geo.SE.municipality[0180]`, and descend to a - Let a path select a row by key or by name, `geo.SE.municipality[0180]` and
linked table by name, `geo.SE.region[01].street`; a key or a linked table name `geo.SE.municipality[Stockholm]`, and descend to a linked table by name,
may not equal a column name (load error). `geo.SE.region[Skåne län].street`; a key or a linked table name may not equal
a column name (load error). A name that matches several rows outside a pinned
parent is an error listing the keys; inside one, `region[IL].locality[Springfield]`
resolves.
- Draw linked tables consistently within one render and draw group: the first - Draw linked tables consistently within one render and draw group: the first
table drawn pins its ancestors, and a descendant is drawn inside them. table drawn pins its ancestors, and a descendant is drawn inside them.
- Keep country data under `geo/<alpha2>/`; a locale's `address` reads its - Keep country data under `geo/<alpha2>/`; a locale's `address` reads its
@@ -51,11 +54,10 @@ countries; the README maps each to the native term.
- `geo.SE.address` is a record over one consistent draw: street, number, postal - `geo.SE.address` is a record over one consistent draw: street, number, postal
code, locality; `geo.SE.locality[stockholm].address` stays inside Stockholm. code, locality; `geo.SE.locality[stockholm].address` stays inside Stockholm.
- Countries, in order: SE, US, then NO, DK, FI, NL, FR, AU, CA, ES, GB, DE. - v0.1.0 ships SE and US; then NO, DK, FI, NL, FR, AU, CA, ES, GB, DE.
- Sweden's street ↔ postnummer pairing is not open: Lantmäteriet's addresses need - SE streets come from NVDB per kommun and postnummer from GeoNames per postort,
an approved application under personal-data terms and PostNord's register is box codes dropped by the third-digit rule; the pairing is approximate. Revisit
commercial. Decide: apply as larvit, compose NVDB streets with GeoNames an application to Lantmäteriet for the exact pairing after v0.1.0.
postnummer per postort (approximate pairing), or both.
#### Sources (`research-geo-se.md`, `research-geo-world.md`) #### Sources (`research-geo-se.md`, `research-geo-world.md`)