aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-14 18:50:44 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-14 18:50:44 -0700
commit27e8b2f8b24b12ddc4662c5559419d72755bbf08 (patch)
treeaa75c4696816a5793035903ee90c73b5b21205ff /src/main/java/org/traccar/config
parent204e98895b3cd9a37ceea1760917c07606b36b10 (diff)
downloadtrackermap-server-27e8b2f8b24b12ddc4662c5559419d72755bbf08.tar.gz
trackermap-server-27e8b2f8b24b12ddc4662c5559419d72755bbf08.tar.bz2
trackermap-server-27e8b2f8b24b12ddc4662c5559419d72755bbf08.zip
Filter for old data (fix #3800)
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 7ab45312f..5f31fe99c 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -1104,14 +1104,22 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
- * Filter records with fix time in future. The values is specified in seconds. Records that have fix time more than
- * specified number of seconds later than current server time would be filtered out.
+ * Filter records with fix time in the future. The value is specified in seconds. Records that have fix time more
+ * than the specified number of seconds later than current server time would be filtered out.
*/
public static final ConfigKey<Long> FILTER_FUTURE = new LongConfigKey(
"filter.future",
List.of(KeyType.CONFIG));
/**
+ * Filter records with fix time in the past. The value is specified in seconds. Records that have fix time more
+ * than the specified number of seconds before current server time would be filtered out.
+ */
+ public static final ConfigKey<Long> FILTER_PAST = new LongConfigKey(
+ "filter.past",
+ List.of(KeyType.CONFIG));
+
+ /**
* Filter positions with accuracy less than specified value in meters.
*/
public static final ConfigKey<Integer> FILTER_ACCURACY = new IntegerConfigKey(