From fb2ea319c24446ddf9e609f8a4c095b2e26ffbe8 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Thu, 22 Jun 2017 16:31:03 +0200 Subject: Velocity is km/h --- src/org/traccar/protocol/OwnTracksProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') 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")); -- cgit v1.2.3