aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-10 15:43:41 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-10 15:43:41 -0700
commitf752a0b5990d4687e7dfb870faf7adbedd3a06c3 (patch)
treeca9d58e314de8f4fc868d030e6ff6ccd38d32262
parent53f1be38dc55032e73e1aae659bb94dda6414d31 (diff)
downloadtrackermap-server-f752a0b5990d4687e7dfb870faf7adbedd3a06c3.tar.gz
trackermap-server-f752a0b5990d4687e7dfb870faf7adbedd3a06c3.tar.bz2
trackermap-server-f752a0b5990d4687e7dfb870faf7adbedd3a06c3.zip
Fix geocoder handling
-rw-r--r--src/main/java/org/traccar/handler/GeocoderHandler.java6
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