Connect to the OSM data pipeline
Prerequisites
- Access to the
app-orchestration-gisworking directory (the pipeline scripts) - Python 3.11+ with the pipeline's dependencies installed
- Network access to the Overpass API
- A Wikidata Q-ID for the chain you're ingesting (look it up at wikidata.org)
Purpose
Add a new retail or service chain to the location-intelligence pipeline — from raw OpenStreetMap data to a servable cluster tile — a chain that's genuinely been run before, not a hypothetical procedure.
Procedure
-
Look up the chain's Wikidata Q-ID. This is the stable, language-neutral identifier the taxonomy anchors to (Walmart: Q483551, IKEA: Q54078). If the chain has no clean Wikidata entry, you'll fall back to a name-based query later.
-
Run the ingest script directly against the chain's identifier — there's no separate YAML descriptor file to author for a straightforward run:
This queries the Overpass API and writes JSONL records to the platform's data directory. If the chain returns zero records, Wikidata tag coverage may be sparse in OpenStreetMap for that chain — check whether a name-based fallback query is warranted before assuming the chain has no data.
-
Register the chain's category in
taxonomy.py, in theCATEGORIESdict:: , -
Add the chain to
BRAND_FILL, under its category, keyed by country code:: , -
Rebuild the cluster layer and its servable tiles:
Expected outcome
The new chain's locations are present in the rebuilt cluster GeoJSON and reflected in the regenerated PMTiles archive that the map actually serves.
Verification
Check the new chain's record count landed as expected:
Then confirm it appears in the rebuilt cluster output before treating the ingest as complete. A chain registered in the taxonomy but never actually ingested, or an ingest that ran but was never included in a rebuild, both leave the map showing stale data with no error to warn you.
Rollback
Remove the chain's entries from CATEGORIES/BRAND_FILL and delete its JSONL file, then re-run the rebuild steps to regenerate cluster output without it. There's no in-place "undo" for a rebuild already served — the previous state is only recoverable by rebuilding again from a taxonomy that excludes the chain.
Next steps
- Build a co-location map — render the rebuilt cluster tiles in a MapLibre application
See also
- Location intelligence substrate — the flat-file/PMTiles architecture this pipeline feeds
Cite this record: /wiki/connect-osm-data-pipeline — revision 9b9339a2, last updated 6 August 2026.