diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-25 09:47:04 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-25 09:47:04 +1200 |
commit | 6feff5849f6dca3c94cf03e16e972ae85599e5bc (patch) | |
tree | 5922ff4bfbb10564e746c4044577098ec9020da2 /src/org/traccar/protocol/Gl200ProtocolDecoder.java | |
parent | bfe1227df5892e7542d80559363833c302a02077 (diff) | |
download | trackermap-server-6feff5849f6dca3c94cf03e16e972ae85599e5bc.tar.gz trackermap-server-6feff5849f6dca3c94cf03e16e972ae85599e5bc.tar.bz2 trackermap-server-6feff5849f6dca3c94cf03e16e972ae85599e5bc.zip |
Fix GL200 speed value issue
Diffstat (limited to 'src/org/traccar/protocol/Gl200ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Gl200ProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gl200ProtocolDecoder.java b/src/org/traccar/protocol/Gl200ProtocolDecoder.java index 9383f2d4e..1392c56a8 100644 --- a/src/org/traccar/protocol/Gl200ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gl200ProtocolDecoder.java @@ -26,6 +26,7 @@ import org.jboss.netty.channel.ChannelHandlerContext; import org.traccar.BaseProtocolDecoder; import org.traccar.Context; +import org.traccar.helper.UnitsConverter; import org.traccar.model.Event; import org.traccar.model.Position; @@ -104,7 +105,7 @@ public class Gl200ProtocolDecoder extends BaseProtocolDecoder { // Speed String speed = parser.group(index++); if (speed != null) { - position.setSpeed(Double.valueOf(speed)); + position.setSpeed(UnitsConverter.knotsFromKph(Double.valueOf(speed))); } // Course |