aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Tr20ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-07-24 22:23:30 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-07-24 22:23:30 +1200
commitf4d73d79fbee9859ce8da66c7c0ad4af8bca9b9e (patch)
treec0799b19b4eff1cfc318ee44ea10b072981ca0d6 /src/org/traccar/protocol/Tr20ProtocolDecoder.java
parenta9fbc36ba173573aabd581e7a14f32ce0af69cb6 (diff)
downloadtrackermap-server-f4d73d79fbee9859ce8da66c7c0ad4af8bca9b9e.tar.gz
trackermap-server-f4d73d79fbee9859ce8da66c7c0ad4af8bca9b9e.tar.bz2
trackermap-server-f4d73d79fbee9859ce8da66c7c0ad4af8bca9b9e.zip
Fix TR20 speed value
Diffstat (limited to 'src/org/traccar/protocol/Tr20ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Tr20ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Tr20ProtocolDecoder.java b/src/org/traccar/protocol/Tr20ProtocolDecoder.java
index 5b48566b7..b1636a120 100644
--- a/src/org/traccar/protocol/Tr20ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Tr20ProtocolDecoder.java
@@ -119,7 +119,7 @@ public class Tr20ProtocolDecoder extends BaseProtocolDecoder {
position.setLongitude(lonlitude * hemisphere);
// Speed
- position.setSpeed(Double.valueOf(parser.group(index++)));
+ position.setSpeed(Double.valueOf(parser.group(index++)) * 0.539957);
// Course
position.setCourse(Double.valueOf(parser.group(index++)));