diff options
author | Anton Tananaev <anton@traccar.org> | 2024-04-10 15:43:41 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-04-10 15:43:41 -0700 |
commit | f752a0b5990d4687e7dfb870faf7adbedd3a06c3 (patch) | |
tree | ca9d58e314de8f4fc868d030e6ff6ccd38d32262 /src/main/java/org | |
parent | 53f1be38dc55032e73e1aae659bb94dda6414d31 (diff) | |
download | trackermap-server-f752a0b5990d4687e7dfb870faf7adbedd3a06c3.tar.gz trackermap-server-f752a0b5990d4687e7dfb870faf7adbedd3a06c3.tar.bz2 trackermap-server-f752a0b5990d4687e7dfb870faf7adbedd3a06c3.zip |
Fix geocoder handling
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/handler/GeocoderHandler.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/handler/GeocoderHandler.java b/src/main/java/org/traccar/handler/GeocoderHandler.java index b84237856..3744700da 100644 --- a/src/main/java/org/traccar/handler/GeocoderHandler.java +++ b/src/main/java/org/traccar/handler/GeocoderHandler.java @@ -43,11 +43,7 @@ public class GeocoderHandler extends BasePositionHandler { @Override public void handlePosition(Position position, Callback callback) { - if (!ignorePositions) { - callback.processed(false); - } - - if (processInvalidPositions || position.getValid()) { + if (!ignorePositions && (processInvalidPositions || position.getValid())) { if (reuseDistance != 0) { Position lastPosition = cacheManager.getPosition(position.getDeviceId()); if (lastPosition != null && lastPosition.getAddress() != null |