aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-29 02:52:19 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-29 02:52:19 +1300
commite24b3588647fc1597f31b9bcd26ed9b7378f9f5b (patch)
treef136d456cd106face78e2648a37f4576656e9e35 /src
parent58db487ece3ac8644557145a07a75ce4bf63a344 (diff)
downloadtrackermap-server-e24b3588647fc1597f31b9bcd26ed9b7378f9f5b.tar.gz
trackermap-server-e24b3588647fc1597f31b9bcd26ed9b7378f9f5b.tar.bz2
trackermap-server-e24b3588647fc1597f31b9bcd26ed9b7378f9f5b.zip
Fix MiniFinder speed decoding
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/MiniFinderProtocolDecoder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/MiniFinderProtocolDecoder.java b/src/org/traccar/protocol/MiniFinderProtocolDecoder.java
index 33396cebb..1b49bccb0 100644
--- a/src/org/traccar/protocol/MiniFinderProtocolDecoder.java
+++ b/src/org/traccar/protocol/MiniFinderProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014 - 2015 Anton Tananaev (anton@traccar.org)
+ * Copyright 2014 - 2016 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,6 +22,7 @@ import org.traccar.helper.BitUtil;
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;
@@ -86,7 +87,7 @@ public class MiniFinderProtocolDecoder extends BaseProtocolDecoder {
position.setLatitude(parser.nextDouble());
position.setLongitude(parser.nextDouble());
- position.setSpeed(parser.nextDouble());
+ position.setSpeed(UnitsConverter.knotsFromKph(parser.nextDouble()));
position.setCourse(parser.nextDouble());
if (position.getCourse() > 360) {