diff options
author | Jan-Piet Mens <jpmens@gmail.com> | 2017-06-22 16:31:03 +0200 |
---|---|---|
committer | Jan-Piet Mens <jpmens@gmail.com> | 2017-06-22 16:31:03 +0200 |
commit | fb2ea319c24446ddf9e609f8a4c095b2e26ffbe8 (patch) | |
tree | 6afe86c6bad3c5c2e2066c9fe4a97ba253b336a1 | |
parent | 798e1b7bb58b82945a7a009ae8009f6d8bd00d96 (diff) | |
download | trackermap-server-fb2ea319c24446ddf9e609f8a4c095b2e26ffbe8.tar.gz trackermap-server-fb2ea319c24446ddf9e609f8a4c095b2e26ffbe8.tar.bz2 trackermap-server-fb2ea319c24446ddf9e609f8a4c095b2e26ffbe8.zip |
Velocity is km/h
-rw-r--r-- | src/org/traccar/protocol/OwnTracksProtocolDecoder.java | 2 |
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")); |