//! Douglas-Peucker simplification, delegating the actual RDP computation to
//! `geo::SimplifyIdx` over locally-projected planar coordinates.
use ;
use crateproject_local_planar_km;
/// Return the 0-based local indices retained by the Ramer-Douglas-Peucker
/// algorithm for a single user's trajectory.
///
/// Coordinates are projected to local planar kilometre coordinates via
/// [`project_local_planar_km`] first, so `epsilon_km` is a genuine
/// perpendicular-distance tolerance in kilometres rather than a raw
/// lat/lng-degree tolerance.