How peterbrodersen/osmetymology works
Component Relationships
• External Data → Import Pipeline
• Import Pipeline → Storage Layer
• Storage Layer → Web Application
• Web Application → User Interface
Data Acquisition
• Denmark OSM data download
• Municipality boundaries download
Data Processing
• osm2pgsql processing
• Municipality boundary import
Data Aggregation
• Street name grouping
• Municipality-based splitting
Wikidata Enhancement
• Fetch Wikidata items
• Process "Instance of" relationships
Export Generation
• FlatGeobuf creation
• CSV export
Web Application Layer:
• Frontend Components
• Leaflet Map Integration
• Search Interface
• Helper Functions (helper.js)
• Backend Components
• Database Connection (connect.inc.php)
• API Endpoints (lookup.php)
• Data Serving Logic
Technical Details
Annotations showing:
• File formats (SQL, FlatGeobuf, CSV)
• Key technologies (Leaflet, PostgreSQL, PHP)
• Critical configuration points (db.php)
• Data flow directions
• API endpoints