aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorJan-Piet Mens <jpmens@gmail.com>2017-06-22 16:31:03 +0200
committerJan-Piet Mens <jpmens@gmail.com>2017-06-22 16:31:03 +0200
commitfb2ea319c24446ddf9e609f8a4c095b2e26ffbe8 (patch)
tree6afe86c6bad3c5c2e2066c9fe4a97ba253b336a1 /src/org/traccar/protocol
parent798e1b7bb58b82945a7a009ae8009f6d8bd00d96 (diff)
downloadtrackermap-server-fb2ea319c24446ddf9e609f8a4c095b2e26ffbe8.tar.gz
trackermap-server-fb2ea319c24446ddf9e609f8a4c095b2e26ffbe8.tar.bz2
trackermap-server-fb2ea319c24446ddf9e609f8a4c095b2e26ffbe8.zip
Velocity is km/h
Diffstat (limited to 'src/org/traccar/protocol')
-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"));