From 3899a1b71eed65ee42a35f75b9d82d235e8ff4d5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 11 Jan 2016 22:02:51 +1300 Subject: Support negative coordinates (fix #1654) --- src/org/traccar/protocol/WatchProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3