Skip to content

Commit

Permalink
change simply parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
derGraph committed Sep 6, 2024
1 parent ba1d7d8 commit dfcefc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workers/simplifyGps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function simplifyGps(trip: string, amount: number) {
{ lat: Number(lastPoint.lat), lng: Number(lastPoint.long) }
);

if (crosstrackError < 15 && Math.abs(turnRate) < 40 && distFromLastPoint < 1000) {
if (crosstrackError < 10 && Math.abs(turnRate) < 40 && distFromLastPoint < 100) {
// Delete Datapoint
deletedPoints.push(inputData[i].id);
} else {
Expand Down

0 comments on commit dfcefc1

Please sign in to comment.