pub fn project_point_onto_linestring(
point: &Point<f64>,
linestring: &LineString<f64>,
) -> Result<Point<f64>, ProjectionError>Expand description
Project a point onto the nearest location on a LineString.
Uses an equirectangular approximation (cos(lat) scaling on longitude) so that the closest-point computation is metrically correct for geographic (WGS 84) coordinates.