garage44.eu/jeroen/cartopolis

logclone: git clone https://garage44.eu/jeroen/cartopolis.git

.. /docs/notes/poi-labels-from-id-schema.md

raw


topic: poi-labels-from-id-schema triggers: [places.rs, presets.rs, preset_table.rs, id_presets.py, PoiCategory, interact.rs, "poi label", "tag name", "id-tagging-schema", "preset", "what is this place", "icon for a shop"] updated: 2026-08-15

POI labels come from iD's tagging schema, not from us

places::PoiCategory sorts a POI into twelve buckets and that is all it can say: a bakery, a butcher and a phone shop are each Shop, so the proximity prompt read Look at Bakkerij Klaas (shop) for all three. The specific tag was read to pick the bucket and then dropped.

The vocabulary for naming those things is not ours to write. It is @openstreetmap/id-tagging-schema, the catalog behind the iD editor on openstreetmap.org — community-maintained, ISC licensed, ~1,700 presets, each a tag pattern plus a human name, synonyms and an icon, translated into 30-odd languages. tools/id_presets.py flattens it into crates/geo/src/preset_table.rs; geo::presets::label_for is the lookup.

Measured on the Groningen z14 fixture, 2026-08-15 (places::tests::presets_name_more_kinds_of_place_than_the_categories_can): 163 of 174 named POIs (94%) get a specific label, 43 distinct kinds where the categories offered 10.

What was left upstream, and why

Constraints that will bite

Where it came from

An OsmGo comparison (2026-08-15). OsmGo is a phone-first OSM field editor and ships this same catalog flattened into two 8.4 MB files; almost nothing else about it transfers to a 3D client, but the observation that the vocabulary is a build artifact you import rather than a table you maintain does. Its other transferable ideas — the device-compass heading (ours is course-over-ground and therefore undefined standing still), an explicit "download this area" with the downloaded envelope drawn on the map, and declutter-with-tappability as a setting — are not implemented here.