aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/reports/Stops.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-08-14 15:34:48 +0500
committerAbyss777 <abyss@fox5.ru>2017-08-15 15:01:47 +0500
commitf1ee1017d62ec0d1b6b1ca56c297537870f1d32b (patch)
tree7a45608db55264fe7048c8097698717d235deabe /src/org/traccar/reports/Stops.java
parent30e8409375f9992a5248f7e2597691c0ee08188c (diff)
downloadtrackermap-server-f1ee1017d62ec0d1b6b1ca56c297537870f1d32b.tar.gz
trackermap-server-f1ee1017d62ec0d1b6b1ca56c297537870f1d32b.tar.bz2
trackermap-server-f1ee1017d62ec0d1b6b1ca56c297537870f1d32b.zip
Reimplement trips detector using MotionEventHandler
Diffstat (limited to 'src/org/traccar/reports/Stops.java')
-rw-r--r--src/org/traccar/reports/Stops.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/org/traccar/reports/Stops.java b/src/org/traccar/reports/Stops.java
index 3f7f674b5..68fdef334 100644
--- a/src/org/traccar/reports/Stops.java
+++ b/src/org/traccar/reports/Stops.java
@@ -30,7 +30,6 @@ import org.apache.poi.ss.util.WorkbookUtil;
import org.traccar.Context;
import org.traccar.model.Device;
import org.traccar.model.Group;
-import org.traccar.reports.model.BaseReport;
import org.traccar.reports.model.DeviceReport;
import org.traccar.reports.model.StopReport;
@@ -45,11 +44,11 @@ public final class Stops {
boolean ignoreOdometer = Context.getDeviceManager()
.lookupAttributeBoolean(deviceId, "report.ignoreOdometer", false, true);
- Collection<? extends BaseReport> result = ReportUtils.detectTripsAndStops(
- Context.getTripsConfig(), ignoreOdometer, speedThreshold,
- Context.getDataManager().getPositions(deviceId, from, to), false);
+ Collection<StopReport> result = ReportUtils.detectStops(
+ Context.getDataManager().getPositions(deviceId, from, to),
+ Context.getTripsConfig(), ignoreOdometer, speedThreshold);
- return (Collection<StopReport>) result;
+ return result;
}
public static Collection<StopReport> getObjects(