diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-08-16 23:14:36 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-16 23:14:36 +1200 |
commit | e8739edc4e2b3a945c2b0eeec6286f7ef59037cf (patch) | |
tree | 4f804a49c612c38f73fab724e1ce982261238e78 /src/org/traccar/reports/Stops.java | |
parent | 7820541530ea9891c001cbd8c53cc6340380a077 (diff) | |
parent | 5d3eb5136b96c8667021ef4d9452b4008ff40e42 (diff) | |
download | trackermap-server-e8739edc4e2b3a945c2b0eeec6286f7ef59037cf.tar.gz trackermap-server-e8739edc4e2b3a945c2b0eeec6286f7ef59037cf.tar.bz2 trackermap-server-e8739edc4e2b3a945c2b0eeec6286f7ef59037cf.zip |
Merge pull request #3447 from Abyss777/new_trips_detector
Reimplement trips detector using MotionEventHandler
Diffstat (limited to 'src/org/traccar/reports/Stops.java')
-rw-r--r-- | src/org/traccar/reports/Stops.java | 9 |
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..1e72cc927 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.detectTripsAndStops( + Context.getDataManager().getPositions(deviceId, from, to), + Context.getTripsConfig(), ignoreOdometer, speedThreshold, StopReport.class); - return (Collection<StopReport>) result; + return result; } public static Collection<StopReport> getObjects( |