aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-26 03:28:05 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-08-26 03:28:06 +1200
commit102b17df3abd6126404089384e214bda28b604fe (patch)
tree6e228237840ac6f049aad5610f5433374232228e /src/org
parentce60f22e4fde1cd0645371291b2bf7016856f78b (diff)
downloadtraccar-server-102b17df3abd6126404089384e214bda28b604fe.tar.gz
traccar-server-102b17df3abd6126404089384e214bda28b604fe.tar.bz2
traccar-server-102b17df3abd6126404089384e214bda28b604fe.zip
Improve GpsGate decoder pattern
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/GpsGateProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/GpsGateProtocolDecoder.java b/src/org/traccar/protocol/GpsGateProtocolDecoder.java
index afc17a9f7..ac859b592 100644
--- a/src/org/traccar/protocol/GpsGateProtocolDecoder.java
+++ b/src/org/traccar/protocol/GpsGateProtocolDecoder.java
@@ -52,9 +52,9 @@ public class GpsGateProtocolDecoder extends BaseProtocolDecoder {
.number("(d+),") // imei
.expression("[^,]*,") // command
.expression("[^,]*,")
- .number("(dd)(dd.d+),") // latitude
+ .number("(d+)(dd.d+),") // latitude
.expression("([NS]),")
- .number("(ddd)(dd.d+),") // longitude
+ .number("(d+)(dd.d+),") // longitude
.expression("([EW]),")
.number("(d+.?d*),") // altitude
.number("(d+.?d*),") // speed