Portfolio project, Rust + WebAssembly

Mountain trail risk segmentation

A small data pipeline: OpenStreetMap hiking paths and SRTM elevation become trail segments in CSV, get validated, turned into features, grouped into four risk levels with k-means, and served as static JSON. The same Rust code runs on the build machine and inside this page.

Not for route planning. Inputs are real OpenStreetMap paths and SRTM elevation for Gede-Pangrango, but the risk levels are a statistical grouping, not a safety assessment.

Pipeline

    Risk levels

    Segments

    Run it yourself

    The page loads wasm compiled from the same crate the build used. Re-run the bundled CSV, or pick your own file with the same 9 columns. Nothing is uploaded; the file stays in your browser.

    Download the sample CSV

    Validation report

    How the score works

    Each feature is scaled to 0..1 across the dataset, then combined with fixed weights into a 0..100 composite. K-means (k = 4, deterministic start) groups the segments on the same weighted features; groups are named Low to Severe by their mean composite. Weights are a judgement call, not a calibrated safety model.