aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-26 12:41:06 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-26 12:41:06 +0500
commit8703141ca31fc00a350e3360720be63885cb25ee (patch)
tree46ff6ac22a8c3b8dd2c381ce6a444934515f440f
parenta39439829c85dd1b0323b6c15b647eb0d1d92f5f (diff)
downloadtrackermap-server-8703141ca31fc00a350e3360720be63885cb25ee.tar.gz
trackermap-server-8703141ca31fc00a350e3360720be63885cb25ee.tar.bz2
trackermap-server-8703141ca31fc00a350e3360720be63885cb25ee.zip
Fix wialon protocol speed units
-rw-r--r--src/org/traccar/protocol/WialonProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WialonProtocolDecoder.java b/src/org/traccar/protocol/WialonProtocolDecoder.java
index 0043354d5..538ee51ca 100644
--- a/src/org/traccar/protocol/WialonProtocolDecoder.java
+++ b/src/org/traccar/protocol/WialonProtocolDecoder.java
@@ -21,6 +21,7 @@ import org.traccar.DeviceSession;
import org.traccar.helper.DateBuilder;
import org.traccar.helper.Parser;
import org.traccar.helper.PatternBuilder;
+import org.traccar.helper.UnitsConverter;
import org.traccar.model.Position;
import java.net.SocketAddress;
@@ -91,7 +92,7 @@ public class WialonProtocolDecoder extends BaseProtocolDecoder {
position.setLatitude(parser.nextCoordinate());
position.setLongitude(parser.nextCoordinate());
- position.setSpeed(parser.nextDouble());
+ position.setSpeed(UnitsConverter.knotsFromKph(parser.nextDouble()));
position.setCourse(parser.nextDouble());
position.setAltitude(parser.nextDouble());