diff options
author | Anton Tananaev <anton@traccar.org> | 2023-05-14 10:28:44 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-05-14 10:28:44 -0700 |
commit | f68d23d79d0321ef47f72fff2388b5f4aac1beff (patch) | |
tree | 4e6b85435a5b4e8b5816bf5895cce0e3ab0069e7 /src/main/java/org/traccar/reports/common | |
parent | 78e18b3da86de2e2c5f2aa67ff03c3827708d6a0 (diff) | |
download | trackermap-server-f68d23d79d0321ef47f72fff2388b5f4aac1beff.tar.gz trackermap-server-f68d23d79d0321ef47f72fff2388b5f4aac1beff.tar.bz2 trackermap-server-f68d23d79d0321ef47f72fff2388b5f4aac1beff.zip |
Per device motion threshold
Diffstat (limited to 'src/main/java/org/traccar/reports/common')
-rw-r--r-- | src/main/java/org/traccar/reports/common/TripsConfig.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/main/java/org/traccar/reports/common/TripsConfig.java b/src/main/java/org/traccar/reports/common/TripsConfig.java index 52db97b74..841d9c652 100644 --- a/src/main/java/org/traccar/reports/common/TripsConfig.java +++ b/src/main/java/org/traccar/reports/common/TripsConfig.java @@ -33,20 +33,18 @@ public class TripsConfig { config.getLong(Keys.REPORT_TRIP_MINIMAL_PARKING_DURATION) * 1000, config.getLong(Keys.REPORT_TRIP_MINIMAL_NO_DATA_DURATION) * 1000, config.getBoolean(Keys.REPORT_TRIP_USE_IGNITION), - config.getBoolean(Keys.EVENT_MOTION_PROCESS_INVALID_POSITIONS), - config.getDouble(Keys.EVENT_MOTION_SPEED_THRESHOLD)); + config.getBoolean(Keys.EVENT_MOTION_PROCESS_INVALID_POSITIONS)); } public TripsConfig( double minimalTripDistance, long minimalTripDuration, long minimalParkingDuration, - long minimalNoDataDuration, boolean useIgnition, boolean processInvalidPositions, double speedThreshold) { + long minimalNoDataDuration, boolean useIgnition, boolean processInvalidPositions) { this.minimalTripDistance = minimalTripDistance; this.minimalTripDuration = minimalTripDuration; this.minimalParkingDuration = minimalParkingDuration; this.minimalNoDataDuration = minimalNoDataDuration; this.useIgnition = useIgnition; this.processInvalidPositions = processInvalidPositions; - this.speedThreshold = speedThreshold; } private final double minimalTripDistance; @@ -85,10 +83,4 @@ public class TripsConfig { return processInvalidPositions; } - private final double speedThreshold; - - public double getSpeedThreshold() { - return speedThreshold; - } - } |