aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config/Keys.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-08-10 20:44:12 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-08-10 20:44:12 -0700
commita7288edd54744fca8c62468ad41b6194ab104c6f (patch)
tree27407f95b6dff8bdac9126e5bfd2e407d421a077 /src/main/java/org/traccar/config/Keys.java
parent51c6b0fe2ce11af9ce5f758dd81ffec3e59ad83b (diff)
downloadtrackermap-server-a7288edd54744fca8c62468ad41b6194ab104c6f.tar.gz
trackermap-server-a7288edd54744fca8c62468ad41b6194ab104c6f.tar.bz2
trackermap-server-a7288edd54744fca8c62468ad41b6194ab104c6f.zip
Add driver behavior events
Diffstat (limited to 'src/main/java/org/traccar/config/Keys.java')
-rw-r--r--src/main/java/org/traccar/config/Keys.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index ef0edbac3..1411e8a13 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -212,13 +212,27 @@ public final class Keys {
Collections.singletonList(KeyType.GLOBAL));
/**
- * Relevant only for geofence speed limits. Use lowest speed limits from all geofences.
+ * Relevant only for geofence speed limits. Use the lowest speed limit from all geofences.
*/
public static final ConfigKey<Boolean> EVENT_OVERSPEED_PREFER_LOWEST = new ConfigKey<>(
"event.overspeed.preferLowest",
Collections.singletonList(KeyType.GLOBAL));
/**
+ * Driver behavior acceleration threshold. Value is in meter per second squared.
+ */
+ public static final ConfigKey<Double> EVENT_BEHAVIOR_ACCELERATION_THRESHOLD = new ConfigKey<>(
+ "event.behavior.accelerationThreshold",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
+ * Driver behavior braking threshold. Value is in meter per second squared.
+ */
+ public static final ConfigKey<Double> EVENT_BEHAVIOR_BRAKING_THRESHOLD = new ConfigKey<>(
+ "event.behavior.brakingThreshold",
+ Collections.singletonList(KeyType.GLOBAL));
+
+ /**
* Do not generate alert event if same alert was present in last known location.
*/
public static final ConfigKey<Boolean> EVENT_IGNORE_DUPLICATE_ALERTS = new ConfigKey<>(