Add Pipline

Hamza 2026-02-26 12:29:42 +01:00
commit d40f2192e7

17
Pipline.md Normal file

@ -0,0 +1,17 @@
```mermaid
flowchart TD
A[Raw GPS Records] --> B[Anomaly Detection]
B --> C[DBSCAN Clustering]
C --> D{Stop Cluster?}
D -->|Yes| E[Collapse to Centroid]
D -->|No| F[Keep Points]
E --> G[Douglas-Peucker Simplification]
F --> G
G --> H[OSRM Map Matching]
H --> I{Gap Detected?}
I -->|Yes| J[Route via OSRM]
I -->|No| K[Continue]
J --> L[Aggregate Distances]
K --> L
L --> M[Generate JSON]
M --> N[Render in Leaflet]