Where a pin comes from, and where an event has to get through

Where a pin comes from, and where an event has to get through A data-flow diagram generated by Archify. 01 / Source 02 / Adapt 03 / Resolve 04 / Stage 05 / Live OpenStreetMap · ODbL · 01 / Source · reuse permitted OpenStreetMap ODbL reuse permitted Public publishers · venue, museum, municipal · 01 / Source · never an aggregator Public publishers venue, museum, municipal never an aggregator OSM sync · admin-only · 02 / Adapt OSM sync admin-only Adapter · api · ical · rss · html · 02 / Adapt · scrape last Adapter api · ical · rss · html scrape last Venue match · raw string → place · 03 / Resolve · four outcomes Venue match raw string → place four outcomes geocode_cache · the fallback's fallback · 03 / Resolve geocode_cache the fallback's fallback place · source = osm · 04 / Stage · the anchor place source = osm the anchor place · source = event-venue · 04 / Stage · match failed place source = event-venue match failed staged_event · match_status + status · 04 / Stage · two axes staged_event match_status + status two axes Human review · accept · reject · 05 / Live Human review accept · reject event · attached to a place · 05 / Live · on the map event attached to a place on the map places ODbL upsert on (osm_type, osm_id) re-runnable raw listings public sources venue string unnormalised, kept matched or not either way no OSM candidate cached create a venue place recorded failure needs a decision nothing auto-publishes accepted now public Legend primary data policy / PII async batch data store data flow

Places are synced

  • • OSM is the anchor because it is ODbL — legal, not technical
  • • A partial unique index on (osm_type, osm_id) makes a re-sync an upsert
  • • Partial, so the venue places with no OSM identity do not collide on NULLs

Events are staged

  • • An ingested event becomes a staged_event, never an event
  • • Two independent axes: do we know where it is, has a human decided
  • • So a publisher that starts emitting nonsense cannot quietly publish

A failed match is data

  • • source = 'event-venue' means the matcher could not resolve the venue
  • • The raw venue string and address are kept, so a bad match stays diagnosable
  • • A rise in venue places means the matcher or OSM coverage got worse