aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-06-18 07:41:43 -0700
committerAnton Tananaev <anton@traccar.org>2023-06-18 07:41:43 -0700
commitef99a5067522d5affcd0550eb299e37c916e3096 (patch)
tree8d1754c484d6529d72cbe3ddd4920f37f0cfa609 /src/main/java/org/traccar/config
parent2d45e488f090d54d87319adc65147a3998f0d3c3 (diff)
downloadtrackermap-server-ef99a5067522d5affcd0550eb299e37c916e3096.tar.gz
trackermap-server-ef99a5067522d5affcd0550eb299e37c916e3096.tar.bz2
trackermap-server-ef99a5067522d5affcd0550eb299e37c916e3096.zip
Add daily limit filter
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 1ff1d1b51..04bf10fe7 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -1328,6 +1328,13 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
+ * Filter position if the daily limit is exceeded for the device.
+ */
+ public static final ConfigKey<Integer> FILTER_DAILY_LIMIT = new IntegerConfigKey(
+ "filter.dailyLimit",
+ List.of(KeyType.CONFIG));
+
+ /**
* If false, the server expects all locations to come sequentially (for each device). Filter checks for duplicates,
* distance, speed, or time period only against the location that was last received by server.
* If true, the server expects locations to come at random order (since tracking device might go offline).