aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-04 10:49:01 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-04 10:49:01 +1300
commitc9232000e595b0addd4bf7bbaf7a90e088c94624 (patch)
treea1947d4749d28eaee3d6a7ceef8887c2f3fc13f9 /src/org/traccar/protocol
parent265cf7869c779898b2498387170204a28ff04106 (diff)
downloadtrackermap-server-c9232000e595b0addd4bf7bbaf7a90e088c94624.tar.gz
trackermap-server-c9232000e595b0addd4bf7bbaf7a90e088c94624.tar.bz2
trackermap-server-c9232000e595b0addd4bf7bbaf7a90e088c94624.zip
Decode GoSafe speed correctly
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/GoSafeProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/GoSafeProtocolDecoder.java b/src/org/traccar/protocol/GoSafeProtocolDecoder.java
index 1ae527160..a7f1024c6 100644
--- a/src/org/traccar/protocol/GoSafeProtocolDecoder.java
+++ b/src/org/traccar/protocol/GoSafeProtocolDecoder.java
@@ -227,7 +227,7 @@ public class GoSafeProtocolDecoder extends BaseProtocolDecoder {
position.setValid(parser.next().equals("A"));
position.setLatitude(parser.nextCoordinate(Parser.CoordinateFormat.HEM_DEG));
position.setLongitude(parser.nextCoordinate(Parser.CoordinateFormat.HEM_DEG));
- position.setSpeed(parser.nextDouble());
+ position.setSpeed(UnitsConverter.knotsFromKph(parser.nextDouble()));
position.setCourse(parser.nextDouble());
position.set(Position.KEY_HDOP, parser.next());