diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-12-02 21:28:15 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-12-02 21:28:15 +1300 |
commit | 2039c90485caaa03ab4833797daaca3250174203 (patch) | |
tree | 3949fb81bc6bbadf7162ba8493a1b404ebd202d8 /src/org | |
parent | 6ea412740d1573f237582d67542124ae9bd6509e (diff) | |
download | trackermap-server-2039c90485caaa03ab4833797daaca3250174203.tar.gz trackermap-server-2039c90485caaa03ab4833797daaca3250174203.tar.bz2 trackermap-server-2039c90485caaa03ab4833797daaca3250174203.zip |
Improve TK103 regex pattern
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/Tk103ProtocolDecoder.java | 4 |
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) |