aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-06-23 08:55:37 +1200
committerGitHub <noreply@github.com>2017-06-23 08:55:37 +1200
commitc4b95a8e5e969e1b87f9068c92aae45bacd9e283 (patch)
tree321d54bbba7bd6b9bc737051faed62846a6eb9b5 /src/org
parentf2346a3b869365408731034e46bda90f7e81f0d6 (diff)
parentfb2ea319c24446ddf9e609f8a4c095b2e26ffbe8 (diff)
downloadtrackermap-server-c4b95a8e5e969e1b87f9068c92aae45bacd9e283.tar.gz
trackermap-server-c4b95a8e5e969e1b87f9068c92aae45bacd9e283.tar.bz2
trackermap-server-c4b95a8e5e969e1b87f9068c92aae45bacd9e283.zip
Merge pull request #3279 from jpmens/owntracks4
OwnTracks velocity is in km/h not cps
Diffstat (limited to 'src/org')
-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"));