aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-12-02 21:28:15 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-12-02 21:28:15 +1300
commit2039c90485caaa03ab4833797daaca3250174203 (patch)
tree3949fb81bc6bbadf7162ba8493a1b404ebd202d8 /src/org/traccar/protocol
parent6ea412740d1573f237582d67542124ae9bd6509e (diff)
downloadtrackermap-server-2039c90485caaa03ab4833797daaca3250174203.tar.gz
trackermap-server-2039c90485caaa03ab4833797daaca3250174203.tar.bz2
trackermap-server-2039c90485caaa03ab4833797daaca3250174203.zip
Improve TK103 regex pattern
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/Tk103ProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Tk103ProtocolDecoder.java b/src/org/traccar/protocol/Tk103ProtocolDecoder.java
index f5ce44c60..f8955b1df 100644
--- a/src/org/traccar/protocol/Tk103ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Tk103ProtocolDecoder.java
@@ -42,9 +42,9 @@ public class Tk103ProtocolDecoder extends BaseProtocolDecoder {
"\\d*" + // IMEI (?)
"(\\d{2})(\\d{2})(\\d{2}),?" + // Date (YYMMDD)
"([AV]),?" + // Validity
- "(\\d{2})(\\d{2}\\.\\d{4})" + // Latitude (DDMM.MMMM)
+ "(\\d{2})(\\d{2}\\.\\d+)" + // Latitude (DDMM.MMMM)
"([NS]),?" +
- "(\\d{3})(\\d{2}\\.\\d{4})" + // Longitude (DDDMM.MMMM)
+ "(\\d{3})(\\d{2}\\.\\d+)" + // Longitude (DDDMM.MMMM)
"([EW]),?" +
"(\\d+\\.\\d)(?:\\d*,)?" + // Speed
"(\\d{2})(\\d{2})(\\d{2}),?" + // Time (HHMMSS)