aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-26 18:31:14 +1200
committerGitHub <noreply@github.com>2016-08-26 18:31:14 +1200
commita39439829c85dd1b0323b6c15b647eb0d1d92f5f (patch)
tree27f1b6e3a91e225bf61c117049e8a92ded51e2b4 /src/org/traccar
parent9a13d2162106d975b631d9a50862c628415d7d76 (diff)
parent7b29a294809bfffeb5cf99769b5efe1a5760625e (diff)
downloadtrackermap-server-a39439829c85dd1b0323b6c15b647eb0d1d92f5f.tar.gz
trackermap-server-a39439829c85dd1b0323b6c15b647eb0d1d92f5f.tar.bz2
trackermap-server-a39439829c85dd1b0323b6c15b647eb0d1d92f5f.zip
Merge pull request #2257 from Abyss777/telic_speed
Fix telic protocol speed units
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/TelicProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TelicProtocolDecoder.java b/src/org/traccar/protocol/TelicProtocolDecoder.java
index 818390f60..376ff4c84 100644
--- a/src/org/traccar/protocol/TelicProtocolDecoder.java
+++ b/src/org/traccar/protocol/TelicProtocolDecoder.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;
@@ -94,7 +95,7 @@ public class TelicProtocolDecoder extends BaseProtocolDecoder {
}
position.setValid(parser.nextInt() != 1);
- position.setSpeed(parser.nextDouble());
+ position.setSpeed(UnitsConverter.knotsFromKph(parser.nextDouble()));
position.setCourse(parser.nextDouble());
position.set(Position.KEY_SATELLITES, parser.next());