aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-24 10:45:26 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-24 10:45:26 -0800
commit98993ee219b6c0cb31f2f3b1608d378b2e028535 (patch)
tree77a6e8366c27b8b3851e52b6ab81ff62920b970c /src/org/traccar/config
parenta129cfd3159c02b4f3996dbdfb5299ac95a6720c (diff)
downloadtrackermap-server-98993ee219b6c0cb31f2f3b1608d378b2e028535.tar.gz
trackermap-server-98993ee219b6c0cb31f2f3b1608d378b2e028535.tar.bz2
trackermap-server-98993ee219b6c0cb31f2f3b1608d378b2e028535.zip
Refactor geolocation
Diffstat (limited to 'src/org/traccar/config')
-rw-r--r--src/org/traccar/config/Keys.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/org/traccar/config/Keys.java b/src/org/traccar/config/Keys.java
index 655a61c1d..068512de8 100644
--- a/src/org/traccar/config/Keys.java
+++ b/src/org/traccar/config/Keys.java
@@ -30,6 +30,12 @@ public final class Keys {
Integer.class,
"Server wide connection timeout value in seconds. See protocol timeout for more information.");
+ public static final ConfigKey SERVER_STATISTICS = new ConfigKey(
+ "server.statistics",
+ Boolean.class,
+ "Address for uploading aggregated anonymous usage statistics. Uploaded information is the same you can see "
+ + "on the statistics screen in the web app. It does not include any sensitive (e.g. locations).");
+
public static final ConfigKey EXTRA_HANDLERS = new ConfigKey(
"extra.handlers",
String.class,
@@ -148,6 +154,35 @@ public final class Keys {
Boolean.class,
"Enable to save device IP addresses information. Disabled by default.");
+ public static final ConfigKey GEOLOCATION_ENABLE = new ConfigKey(
+ "geolocation.enable",
+ Boolean.class,
+ "Boolean flag to enable LBS location resolution. Some devices send cell towers information and WiFi point "
+ + "when GPS location is not available. Traccar can determine coordinates based on that information "
+ + "using third party services. Default value is false.");
+
+ public static final ConfigKey GEOLOCATION_TYPE = new ConfigKey(
+ "geolocation.type",
+ String.class,
+ "Provider to use for LBS location. Available options: google, mozilla and opencellid. By default "
+ + "opencellid is used. You have to supply a key that you get from corresponding provider. For more "
+ + "information see LBS geolocation documentation.");
+
+ public static final ConfigKey GEOLOCATION_URL = new ConfigKey(
+ "geolocation.url",
+ String.class,
+ "Geolocation provider URL address.");
+
+ public static final ConfigKey GEOLOCATION_KEY = new ConfigKey(
+ "geolocation.key",
+ String.class,
+ "Provider API key. OpenCellID service requires API key.");
+
+ public static final ConfigKey GEOLOCATION_PROCESS_INVALID_POSITIONS = new ConfigKey(
+ "geolocation.processInvalidPositions",
+ Boolean.class,
+ "Boolean flag to apply geolocation to invalid positions.");
+
private Keys() {
}