diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-04 10:49:01 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-04 10:49:01 +1300 |
commit | c9232000e595b0addd4bf7bbaf7a90e088c94624 (patch) | |
tree | a1947d4749d28eaee3d6a7ceef8887c2f3fc13f9 /src/org/traccar | |
parent | 265cf7869c779898b2498387170204a28ff04106 (diff) | |
download | trackermap-server-c9232000e595b0addd4bf7bbaf7a90e088c94624.tar.gz trackermap-server-c9232000e595b0addd4bf7bbaf7a90e088c94624.tar.bz2 trackermap-server-c9232000e595b0addd4bf7bbaf7a90e088c94624.zip |
Decode GoSafe speed correctly
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/GoSafeProtocolDecoder.java | 2 |
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()); |