diff options
author | Anton Tananaev <anton@traccar.org> | 2023-08-22 06:47:29 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-08-22 06:47:29 -0700 |
commit | ee6b094d26ef8015299cd4a239a415be0cab57f0 (patch) | |
tree | 0bd2392bb686f77c7ffb4ab068ab3bad02fb46ba /src/main/java/org/traccar/protocol | |
parent | cadcd2676adbc1974265acb9ec6d43fc06932824 (diff) | |
download | trackermap-server-ee6b094d26ef8015299cd4a239a415be0cab57f0.tar.gz trackermap-server-ee6b094d26ef8015299cd4a239a415be0cab57f0.tar.bz2 trackermap-server-ee6b094d26ef8015299cd4a239a415be0cab57f0.zip |
Configurable TAIP speed unit
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/TaipProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TaipProtocolDecoder.java b/src/main/java/org/traccar/protocol/TaipProtocolDecoder.java index e5e84b7c4..cf72eef42 100644 --- a/src/main/java/org/traccar/protocol/TaipProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/TaipProtocolDecoder.java @@ -192,7 +192,7 @@ public class TaipProtocolDecoder extends BaseProtocolDecoder { position.setLongitude(parser.nextCoordinate(Parser.CoordinateFormat.HEM_DEG_MIN)); } - position.setSpeed(UnitsConverter.knotsFromMph(parser.nextDouble(0))); + position.setSpeed(convertSpeed(parser.nextDouble(0), "mph")); position.setCourse(parser.nextDouble(0)); if (parser.hasNext(2)) { |