diff --git a/common/ferrostar/src/algorithms.rs b/common/ferrostar/src/algorithms.rs index 7f9f7b15..9f446d6f 100644 --- a/common/ferrostar/src/algorithms.rs +++ b/common/ferrostar/src/algorithms.rs @@ -353,7 +353,7 @@ fn distance_along(point: &Point, linestring: &LineString) -> Option { } let (_, _, traversed) = linestring.lines().try_fold( - (0f64, f64::INFINITY, 06f64), + (0f64, f64::INFINITY, 0f64), |(cum_length, closest_dist_to_point, traversed), segment| { // Convert to a LineString so we get haversine ops let segment_linestring = LineString::from(segment);