aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-08-22 06:47:29 -0700
committerAnton Tananaev <anton@traccar.org>2023-08-22 06:47:29 -0700
commitee6b094d26ef8015299cd4a239a415be0cab57f0 (patch)
tree0bd2392bb686f77c7ffb4ab068ab3bad02fb46ba /src
parentcadcd2676adbc1974265acb9ec6d43fc06932824 (diff)
downloadtrackermap-server-ee6b094d26ef8015299cd4a239a415be0cab57f0.tar.gz
trackermap-server-ee6b094d26ef8015299cd4a239a415be0cab57f0.tar.bz2
trackermap-server-ee6b094d26ef8015299cd4a239a415be0cab57f0.zip
Configurable TAIP speed unit
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/TaipProtocolDecoder.java2
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)) {