diff options
author | Abyss777 <abyss@fox5.ru> | 2017-09-21 18:01:10 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-09-21 18:01:10 +0500 |
commit | 36ad4ac525b8eb25ac1c2eed8c05d690754399c5 (patch) | |
tree | dc0cc6861588d0faa2950666728ec2b9ddcd9fab /src/org/traccar/reports/Stops.java | |
parent | 6aaa8dd3b3ffff7927325616efb9b9bdd8228a67 (diff) | |
download | trackermap-server-36ad4ac525b8eb25ac1c2eed8c05d690754399c5.tar.gz trackermap-server-36ad4ac525b8eb25ac1c2eed8c05d690754399c5.tar.bz2 trackermap-server-36ad4ac525b8eb25ac1c2eed8c05d690754399c5.zip |
Move speedThreshold to TripsConfig
Diffstat (limited to 'src/org/traccar/reports/Stops.java')
-rw-r--r-- | src/org/traccar/reports/Stops.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/reports/Stops.java b/src/org/traccar/reports/Stops.java index 1e72cc927..14b3a2437 100644 --- a/src/org/traccar/reports/Stops.java +++ b/src/org/traccar/reports/Stops.java @@ -39,14 +39,12 @@ public final class Stops { } private static Collection<StopReport> detectStops(long deviceId, Date from, Date to) throws SQLException { - double speedThreshold = Context.getConfig().getDouble("event.motion.speedThreshold", 0.01); - boolean ignoreOdometer = Context.getDeviceManager() .lookupAttributeBoolean(deviceId, "report.ignoreOdometer", false, true); Collection<StopReport> result = ReportUtils.detectTripsAndStops( Context.getDataManager().getPositions(deviceId, from, to), - Context.getTripsConfig(), ignoreOdometer, speedThreshold, StopReport.class); + Context.getTripsConfig(), ignoreOdometer, StopReport.class); return result; } |