aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-08-23 21:01:38 -0700
committerAnton Tananaev <anton@traccar.org>2023-08-23 21:01:38 -0700
commit9aeedc90da24848ff97227d6f281eb4d1e1506ef (patch)
treef46e77071587a7c22ffcdfc2337f892128046a18 /src/main/java/org/traccar/config
parent50e730c0cbbe253b68a2db0e57920ddc3a1b3814 (diff)
downloadtrackermap-server-9aeedc90da24848ff97227d6f281eb4d1e1506ef.tar.gz
trackermap-server-9aeedc90da24848ff97227d6f281eb4d1e1506ef.tar.bz2
trackermap-server-9aeedc90da24848ff97227d6f281eb4d1e1506ef.zip
Add speed limit multiplier (fix #5161)
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index f95794e03..27f5f0921 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -341,6 +341,15 @@ public final class Keys {
0.0);
/**
+ * Speed limit threshold multiplier. For example, if the speed limit is 100, but we only want to generate an event
+ * if the speed is higher than 105, this parameter can be set to 1.05. Default multiplier is 1.0.
+ */
+ public static final ConfigKey<Double> EVENT_OVERSPEED_THRESHOLD_MULTIPLIER = new DoubleConfigKey(
+ "event.overspeed.thresholdMultiplier",
+ List.of(KeyType.CONFIG),
+ 1.0);
+
+ /**
* Minimal over speed duration to trigger the event. Value in seconds.
*/
public static final ConfigKey<Long> EVENT_OVERSPEED_MINIMAL_DURATION = new LongConfigKey(