pub fn load_detections(
path: &Path,
expected_kind: DetectionKind,
) -> Result<Vec<Detection>, DetectionError>Expand description
Load detections from a file. Format is inferred from the extension:
.csv → CSV, .geojson / .json → GeoJSON. Anything else returns
DetectionError::UnsupportedExtension.
expected_kind corresponds to the CLI flag (--punctual-detections or
--linear-detections). The parser validates that the file content matches
the expected kind.