aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-01-11 22:02:51 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-01-11 22:02:51 +1300
commit3899a1b71eed65ee42a35f75b9d82d235e8ff4d5 (patch)
tree964d063e3e39510f3176eed600e3d4e2afacb91d /src/org/traccar/protocol
parent8c7173a6e6ae0b81d96009b86cb88460daab2f4e (diff)
downloadtrackermap-server-3899a1b71eed65ee42a35f75b9d82d235e8ff4d5.tar.gz
trackermap-server-3899a1b71eed65ee42a35f75b9d82d235e8ff4d5.tar.bz2
trackermap-server-3899a1b71eed65ee42a35f75b9d82d235e8ff4d5.zip
Support negative coordinates (fix #1654)
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/WatchProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolDecoder.java b/src/org/traccar/protocol/WatchProtocolDecoder.java
index bfa8c081d..00f49deb5 100644
--- a/src/org/traccar/protocol/WatchProtocolDecoder.java
+++ b/src/org/traccar/protocol/WatchProtocolDecoder.java
@@ -47,9 +47,9 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder {
.number("(dd)(dd)(dd),") // date (ddmmyy)
.number("(dd)(dd)(dd),") // time
.expression("([AV]),") // validity
- .number("(d+.d+),") // latitude
+ .number("-?(d+.d+),") // latitude
.expression("([NS]),")
- .number("(d+.d+),") // longitude
+ .number("-?(d+.d+),") // longitude
.expression("([EW]),")
.number("(d+.d+),") // speed
.number("(d+.d+),") // course