diff options
-rw-r--r-- | src/org/traccar/CoordinatesHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/CoordinatesHandler.java b/src/org/traccar/CoordinatesHandler.java index 7d1c43284..ad445bc28 100644 --- a/src/org/traccar/CoordinatesHandler.java +++ b/src/org/traccar/CoordinatesHandler.java @@ -42,7 +42,7 @@ public class CoordinatesHandler extends BaseDataHandler { if (last != null) { double distance = DistanceCalculator.distance( position.getLatitude(), position.getLongitude(), last.getLatitude(), last.getLongitude()); - if (distance < coordinatesMinError || distance > coordinatesMaxError) { + if (distance < coordinatesMinError || distance > coordinatesMaxError && !position.getValid()) { position.setLatitude(last.getLatitude()); position.setLongitude(last.getLongitude()); } |