Architecture Overview
LeBonTag v2 is built around a modular architecture combining:
- OSM data ingestion
- Validation workflows
- Quality control processing
- PostgreSQL/PostGIS data storage
- Python-based background processing
High-level architecture

Main components
1. OSM Data Sources
- OSM replication (FR mirror)
- OSM API (changesets)
- Periodic updates via cron jobs
These feed the ingestion layer.
2. Python CRON Processes
Two main background pipelines:
- OSM changes ingestion
- Validation export (osmChange generation)
Responsibilities:
- Synchronizing OSM data
- Applying validation decisions
- Feeding the reference schema (osm2pgsql)
- Triggering quality rule re-evaluation
3. Reference Data (osm2pgsql)
- Stores up-to-date OSM data
- Used as base dataset for quality control
- Updated with validated changes from LeBonTag
4. LeBonTag Application Database
Dedicated schema storing:
- Validation workflow state
- Quality rule definitions
- Object groups and business groups
- Audit and history
5. Web Interface
Provides:
- Object validation
- Quality rule exploration
- Administrative configuration
- Role-based access control
Data flow summary
- OSM changes are fetched.
- Data is stored in the reference schema.
- Quality rules analyze the dataset.
- Objects are flagged for validation.
- Validators review via UI.
- Approved changes generate osmChange exports.
- Reference dataset is updated accordingly.