aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/T55ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-18 19:06:31 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-18 19:06:31 +1200
commite6e6afd89be2f64488e61cd4c1391c898e8f6cc3 (patch)
tree5b4d69f2abcc3cc20c4645ffbe278ec103065e2e /src/org/traccar/protocol/T55ProtocolDecoder.java
parenta3a1990d95b3162ecd404610d176e2cb0bccde3b (diff)
downloadtrackermap-server-e6e6afd89be2f64488e61cd4c1391c898e8f6cc3.tar.gz
trackermap-server-e6e6afd89be2f64488e61cd4c1391c898e8f6cc3.tar.bz2
trackermap-server-e6e6afd89be2f64488e61cd4c1391c898e8f6cc3.zip
Handle two digit longitude value
Diffstat (limited to 'src/org/traccar/protocol/T55ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/T55ProtocolDecoder.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/T55ProtocolDecoder.java b/src/org/traccar/protocol/T55ProtocolDecoder.java
index 1376ca123..2771d1d8e 100644
--- a/src/org/traccar/protocol/T55ProtocolDecoder.java
+++ b/src/org/traccar/protocol/T55ProtocolDecoder.java
@@ -20,10 +20,7 @@ import java.util.Calendar;
import java.util.TimeZone;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-
import org.jboss.netty.channel.Channel;
-import org.jboss.netty.channel.ChannelHandlerContext;
-
import org.traccar.BaseProtocolDecoder;
import org.traccar.model.Event;
import org.traccar.model.Position;
@@ -40,7 +37,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
"([AV])," + // Validity
"(\\d{2})(\\d{2}\\.\\d+)," + // Latitude (DDMM.MMMM)
"([NS])," +
- "(\\d{3})(\\d{2}\\.\\d+)," + // Longitude (DDDMM.MMMM)
+ "(\\d{2,3})(\\d{2}\\.\\d+)," + // Longitude (DDDMM.MMMM)
"([EW])," +
"(\\d+\\.?\\d*)?," + // Speed
"(\\d+\\.?\\d*)?," + // Course