diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-04-26 11:06:59 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-04-26 11:06:59 +1200 |
commit | 9224f2963d840a4d540530f61a0f302c234c233f (patch) | |
tree | ad73670a8b30897d85b06d5b5629ab32d8d18af1 /src/org/traccar | |
parent | 7185a24a275dd9f17b364480d4a3641c2cc05bc8 (diff) | |
download | traccar-server-9224f2963d840a4d540530f61a0f302c234c233f.tar.gz traccar-server-9224f2963d840a4d540530f61a0f302c234c233f.tar.bz2 traccar-server-9224f2963d840a4d540530f61a0f302c234c233f.zip |
Fix GoSafe speed units issue
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/GoSafeProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/GoSafeProtocolDecoder.java b/src/org/traccar/protocol/GoSafeProtocolDecoder.java index 2e562d63e..21441479b 100644 --- a/src/org/traccar/protocol/GoSafeProtocolDecoder.java +++ b/src/org/traccar/protocol/GoSafeProtocolDecoder.java @@ -26,6 +26,7 @@ import org.traccar.helper.BitUtil; import org.traccar.helper.DateBuilder; import org.traccar.helper.Parser; import org.traccar.helper.PatternBuilder; +import org.traccar.helper.UnitsConverter; import org.traccar.model.Event; import org.traccar.model.Position; @@ -142,7 +143,7 @@ public class GoSafeProtocolDecoder extends BaseProtocolDecoder { 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.setAltitude(parser.nextDouble()); |