diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-23 15:33:33 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-23 15:33:33 -0800 |
commit | b7d48127e60bcaa5d01f45d8df5203f28f9a1667 (patch) | |
tree | a5c6c85460775db357b39e8ac401db3c8d218dc6 /src/org/traccar/config | |
parent | 563243a8da888244e910a4a7a10fb86ad525fdd4 (diff) | |
download | trackermap-server-b7d48127e60bcaa5d01f45d8df5203f28f9a1667.tar.gz trackermap-server-b7d48127e60bcaa5d01f45d8df5203f28f9a1667.tar.bz2 trackermap-server-b7d48127e60bcaa5d01f45d8df5203f28f9a1667.zip |
Refactor distance handler
Diffstat (limited to 'src/org/traccar/config')
-rw-r--r-- | src/org/traccar/config/Keys.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/org/traccar/config/Keys.java b/src/org/traccar/config/Keys.java index aea8e1ebe..6d4653a94 100644 --- a/src/org/traccar/config/Keys.java +++ b/src/org/traccar/config/Keys.java @@ -126,6 +126,24 @@ public final class Keys { Boolean.class, "Enable attributes skipping. Attribute skipping can be enabled in the config or device attributes"); + public static final ConfigKey COORDINATES_FILTER = new ConfigKey( + "coordinates.filter", + Boolean.class, + "Replaces coordinates with last known if change is less than a 'coordinates.error' meters. Helps to avoid " + + "coordinates jumps during parking period."); + + public static final ConfigKey COORDINATES_MIN_ERROR = new ConfigKey( + "coordinates.minError", + Integer.class, + "Distance in meters. Distances below this value gets handled like explained in 'coordinates.filter'."); + + public static final ConfigKey COORDINATES_MAX_ERROR = new ConfigKey( + "filter.maxError", + Integer.class, + "Distance in meters. Distances above this value gets handled like explained in 'coordinates.filter', but " + + "only if Position is also marked as 'invalid'."); + + private Keys() { } |