aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-14 17:00:57 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-14 17:00:57 -0700
commit0bd4c493e9003449457e87ebad6c7016ded71c8d (patch)
tree4beefd16bdc7665154d73fc07967ac45b1a06a49 /src/main/java/org/traccar/config
parent34fefbffa49925a5d337ff388fb9db400d707f8b (diff)
downloadtrackermap-server-0bd4c493e9003449457e87ebad6c7016ded71c8d.tar.gz
trackermap-server-0bd4c493e9003449457e87ebad6c7016ded71c8d.tar.bz2
trackermap-server-0bd4c493e9003449457e87ebad6c7016ded71c8d.zip
Add LBS location caching (fix #3790)
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 6f19ee863..2e1a14eaf 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -1294,6 +1294,13 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
+ * Reuse last geolocation result if network details have not changed.
+ */
+ public static final ConfigKey<Boolean> GEOLOCATION_REUSE = new BooleanConfigKey(
+ "geolocation.reuse",
+ List.of(KeyType.CONFIG));
+
+ /**
* Default MCC value to use if device doesn't report MCC.
*/
public static final ConfigKey<Integer> GEOLOCATION_MCC = new IntegerConfigKey(