From 662e8b19e0e40d745ad8531a9b7289a68ef91a5d Mon Sep 17 00:00:00 2001 From: derGraph Date: Sat, 14 Sep 2024 15:04:16 +0200 Subject: [PATCH] change simplification turn rate --- workers/simplifyGps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/simplifyGps.ts b/workers/simplifyGps.ts index 74cbed0..ce4095a 100644 --- a/workers/simplifyGps.ts +++ b/workers/simplifyGps.ts @@ -45,7 +45,7 @@ export async function simplifyGps(trip: string, amount: number) { { lat: Number(lastPoint.lat), lng: Number(lastPoint.long) } ); - if (crosstrackError < 10 && Math.abs(turnRate) < 40 && distFromLastPoint < 100) { + if (crosstrackError < 10 && Math.abs(turnRate) < 10 && distFromLastPoint < 100) { // Delete Datapoint deletedPoints.push(inputData[i].id); } else {