aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-06 16:19:56 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-06 16:19:56 -0700
commit09eebb35449c4ffb43b6a72bb4c3f723ec1c84be (patch)
tree51a8ddfc58c7404b064d92ae01350698829789ff /src/main/java/org/traccar
parent715499d5eabf73bdd1684bcf87006d904c92414b (diff)
downloadtrackermap-server-09eebb35449c4ffb43b6a72bb4c3f723ec1c84be.tar.gz
trackermap-server-09eebb35449c4ffb43b6a72bb4c3f723ec1c84be.tar.bz2
trackermap-server-09eebb35449c4ffb43b6a72bb4c3f723ec1c84be.zip
Remove motion fallback (fix #3257)
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/reports/common/ReportUtils.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main/java/org/traccar/reports/common/ReportUtils.java b/src/main/java/org/traccar/reports/common/ReportUtils.java
index cd6b6ffd5..ce5e3d8d4 100644
--- a/src/main/java/org/traccar/reports/common/ReportUtils.java
+++ b/src/main/java/org/traccar/reports/common/ReportUtils.java
@@ -341,12 +341,7 @@ public class ReportUtils {
return false;
}
}
- if (positions.get(index).getAttributes().containsKey(Position.KEY_MOTION)
- && positions.get(index).getAttributes().get(Position.KEY_MOTION) instanceof Boolean) {
- return positions.get(index).getBoolean(Position.KEY_MOTION);
- } else {
- return positions.get(index).getSpeed() > tripsConfig.getSpeedThreshold();
- }
+ return positions.get(index).getBoolean(Position.KEY_MOTION);
}
public <T extends BaseReportItem> Collection<T> detectTripsAndStops(