aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-17 14:10:19 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-17 14:10:19 +1200
commit24c04679c356f21d82419d9cb4f2bcd256653132 (patch)
treea77655000b5dcaa4fd4cdeaa057d2afd9bb527b0 /src
parenta4a40243616cb2d29ca70f61dbca8502d343357a (diff)
downloadtrackermap-server-24c04679c356f21d82419d9cb4f2bcd256653132.tar.gz
trackermap-server-24c04679c356f21d82419d9cb4f2bcd256653132.tar.bz2
trackermap-server-24c04679c356f21d82419d9cb4f2bcd256653132.zip
Improve T55 regex pattern
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/T55ProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/T55ProtocolDecoder.java b/src/org/traccar/protocol/T55ProtocolDecoder.java
index 63444ccd4..1376ca123 100644
--- a/src/org/traccar/protocol/T55ProtocolDecoder.java
+++ b/src/org/traccar/protocol/T55ProtocolDecoder.java
@@ -50,9 +50,9 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
private static final Pattern patternGPGGA = Pattern.compile(
"\\$GPGGA," +
"(\\d{2})(\\d{2})(\\d{2})\\.?\\d*," + // Time
- "(\\d{2})(\\d{2}\\.\\d+)," + // Latitude
+ "(\\d+)(\\d{2}\\.\\d+)," + // Latitude
"([NS])," +
- "(\\d{3})(\\d{2}\\.\\d+)," + // Longitude
+ "(\\d+)(\\d{2}\\.\\d+)," + // Longitude
"([EW])," +
".+");