From b7d48127e60bcaa5d01f45d8df5203f28f9a1667 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 23 Feb 2019 15:33:33 -0800 Subject: Refactor distance handler --- src/org/traccar/config/Keys.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/org/traccar/config/Keys.java') 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() { } -- cgit v1.2.3