aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/OwnTracksProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
index 7388cde57..f3284d9e2 100644
--- a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
+++ b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
@@ -71,7 +71,7 @@ public class OwnTracksProtocolDecoder extends BaseProtocolDecoder {
position.setLongitude(root.getJsonNumber("lon").doubleValue());
if (root.containsKey("vel")) {
- position.setSpeed(UnitsConverter.knotsFromCps(root.getInt("vel")));
+ position.setSpeed(UnitsConverter.knotsFromKph(root.getInt("vel")));
}
if (root.containsKey("alt")) {
position.setAltitude(root.getInt("alt"));