Add OSM Track Harvesting Policy and demo database initialization script
- Updated documentation to include OSM Track Harvesting Policy with details on railway types, service filters, usage filters, and geometry guardrails. - Introduced a new script `init_demo_db.py` to automate the database setup process, including environment checks, running migrations, and loading OSM fixtures for demo data.
This commit is contained in:
@@ -55,6 +55,13 @@ Dynamic simulation of train operations:
|
||||
- **Fallback Mechanisms**: Polling as alternative when WebSockets unavailable
|
||||
- **Event-Driven Updates**: Push notifications for game state changes
|
||||
|
||||
#### 8.2.4 OSM Track Harvesting Policy
|
||||
|
||||
- **Railway Types**: Importer requests `rail`, `light_rail`, `subway`, `tram`, `narrow_gauge`, plus `construction` and `disused` variants to capture build-state metadata.
|
||||
- **Service Filters**: `service` tags such as `yard`, `siding`, `spur`, `crossover`, `industrial`, or `military` are excluded to focus on mainline traffic.
|
||||
- **Usage Filters**: Ways flagged with `usage=military` or `usage=tourism` are skipped; unspecified usage defaults to accepted.
|
||||
- **Geometry Guardrails**: Segments shorter than 75 meters are discarded and track endpoints must snap to an existing station within 350 meters or the segment is ignored during loading.
|
||||
|
||||
### 8.3 User Interface Concepts
|
||||
|
||||
#### 8.3.1 Component-Based Architecture
|
||||
@@ -127,4 +134,3 @@ Dynamic simulation of train operations:
|
||||
- **Lazy Loading**: On-demand loading of components and data
|
||||
- **Caching Layers**: Redis for frequently accessed data
|
||||
- **Asset Optimization**: Minification and compression of static resources
|
||||
|
||||
|
||||
Reference in New Issue
Block a user