aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-03-08 10:39:40 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-03-08 10:39:40 +1300
commitb8d2578c5448bc760a91c80793ff4141a974324f (patch)
tree6cfe4a9908e3863741113754fd0a20c16bc03090 /src/org
parentabcadef0f6465743e85aa011f39367fddbe7d8e5 (diff)
downloadtrackermap-server-b8d2578c5448bc760a91c80793ff4141a974324f.tar.gz
trackermap-server-b8d2578c5448bc760a91c80793ff4141a974324f.tar.bz2
trackermap-server-b8d2578c5448bc760a91c80793ff4141a974324f.zip
Improve H02 regex pattern
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/H02ProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/H02ProtocolDecoder.java b/src/org/traccar/protocol/H02ProtocolDecoder.java
index c67eb6053..84ddaf895 100644
--- a/src/org/traccar/protocol/H02ProtocolDecoder.java
+++ b/src/org/traccar/protocol/H02ProtocolDecoder.java
@@ -116,9 +116,9 @@ public class H02ProtocolDecoder extends BaseProtocolDecoder {
".*" +
"(\\d{2})(\\d{2})(\\d{2})," + // Time (HHMMSS)
"([AV])," + // Validity
- "(\\d+)(\\d{2}.\\d+)," + // Latitude (DDMM.MMMM)
+ "-?(\\d+)-?(\\d{2}.\\d+)," + // Latitude (DDMM.MMMM)
"([NS])," +
- "(\\d+)(\\d{2}.\\d+)," + // Longitude (DDMM.MMMM)
+ "-?(\\d+)-?(\\d{2}.\\d+)," + // Longitude (DDMM.MMMM)
"([EW])," +
"(\\d+.?\\d*)," + // Speed
"(\\d+.?\\d*)?," + // Course