aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/reports/Trips.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/Trips.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/Trips.java')
-rw-r--r--src/org/traccar/reports/Trips.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/org/traccar/reports/Trips.java b/src/org/traccar/reports/Trips.java
index a4dcf00f1..bb39cf493 100644
--- a/src/org/traccar/reports/Trips.java
+++ b/src/org/traccar/reports/Trips.java
@@ -29,7 +29,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.TripReport;
@@ -44,11 +43,11 @@ public final class Trips {
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), true);
+ Collection<TripReport> result = ReportUtils.detectTrips(
+ Context.getDataManager().getPositions(deviceId, from, to),
+ Context.getTripsConfig(), ignoreOdometer, speedThreshold);
- return (Collection<TripReport>) result;
+ return result;
}
public static Collection<TripReport> getObjects(long userId, Collection<Long> deviceIds, Collection<Long> groupIds,