aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorVitaliy Gergel <vitaliy.gergel@zoomdata.com>2020-03-04 21:54:55 +0200
committerVitaliy Gergel <vitaliy.gergel@zoomdata.com>2020-03-04 21:54:55 +0200
commit0270f5b639166b385ac779c0d2caa41d7c408771 (patch)
tree1bb5dbb37cfe4378cf75c0d0df69df9f1ecb756f /src/main/java/org/traccar/config
parente7c04c8dfaa67e5bef2d3b9c5ba8924e85045ffc (diff)
downloadtrackermap-server-0270f5b639166b385ac779c0d2caa41d7c408771.tar.gz
trackermap-server-0270f5b639166b385ac779c0d2caa41d7c408771.tar.bz2
trackermap-server-0270f5b639166b385ac779c0d2caa41d7c408771.zip
Adding property to enable URL parameter in json mode
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 d88b36d28..a5b7b780c 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -101,6 +101,13 @@ public final class Keys {
"forward.json", Boolean.class);
/**
+ * Boolean value to enable URL parameters in json mode. For example, {uniqueId} for device identifier,
+ * {latitude} and {longitude} for coordinates.
+ */
+ public static final ConfigKey FORWARD_JSON_URL_VARIABLES = new ConfigKey(
+ "forward.json.url.variables", Boolean.class);
+
+ /**
* Position forwarding retrying enable. When enabled, additional attempts are made to deliver positions. If initial
* delivery fails, because of an unreachable server or an HTTP response different from '2xx', the software waits
* for 'forward.retry.delay' milliseconds to retry delivery. On subsequent failures, this delay is duplicated.