aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-10-16 07:38:12 -0700
committerAnton Tananaev <anton@traccar.org>2023-10-16 07:38:12 -0700
commitd3631eb7286338a0ea046a511aa5cbfce470c7b7 (patch)
treecd8baed039ced5f9fd0a78058551c7803fb0ca1a /src/main/java/org/traccar/config
parent33d01cda7bb678bb604404f18c8f4e66a40eaa55 (diff)
downloadtrackermap-server-d3631eb7286338a0ea046a511aa5cbfce470c7b7.tar.gz
trackermap-server-d3631eb7286338a0ea046a511aa5cbfce470c7b7.tar.bz2
trackermap-server-d3631eb7286338a0ea046a511aa5cbfce470c7b7.zip
Option to require Wi-Fi geolocation
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 15bfec09d..91063a8e0 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2019 - 2022 Anton Tananaev (anton@traccar.org)
+ * Copyright 2019 - 2023 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1650,6 +1650,13 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
+ * Process geolocation only when Wi-Fi information is available. This makes the result more accurate.
+ */
+ public static final ConfigKey<Boolean> GEOLOCATION_REQUIRE_WIFI = new BooleanConfigKey(
+ "geolocation.requireWifi",
+ List.of(KeyType.CONFIG));
+
+ /**
* Default MCC value to use if device doesn't report MCC.
*/
public static final ConfigKey<Integer> GEOLOCATION_MCC = new IntegerConfigKey(