diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-23 08:55:37 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 08:55:37 +1200 |
commit | c4b95a8e5e969e1b87f9068c92aae45bacd9e283 (patch) | |
tree | 321d54bbba7bd6b9bc737051faed62846a6eb9b5 /src/org/traccar/protocol/OwnTracksProtocolDecoder.java | |
parent | f2346a3b869365408731034e46bda90f7e81f0d6 (diff) | |
parent | fb2ea319c24446ddf9e609f8a4c095b2e26ffbe8 (diff) | |
download | traccar-server-c4b95a8e5e969e1b87f9068c92aae45bacd9e283.tar.gz traccar-server-c4b95a8e5e969e1b87f9068c92aae45bacd9e283.tar.bz2 traccar-server-c4b95a8e5e969e1b87f9068c92aae45bacd9e283.zip |
Merge pull request #3279 from jpmens/owntracks4
OwnTracks velocity is in km/h not cps
Diffstat (limited to 'src/org/traccar/protocol/OwnTracksProtocolDecoder.java')
-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")); |