diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-22 13:26:45 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-22 13:27:07 +1200 |
commit | c92f37404893cce14a25379bcd84bb081e94f1b8 (patch) | |
tree | 024a7e0fcb4c90fc07929b182cae0edbe4261e93 /src/org | |
parent | ff600afeb4bce4b45e4cb8c11b668637ff6dea3a (diff) | |
download | traccar-server-c92f37404893cce14a25379bcd84bb081e94f1b8.tar.gz traccar-server-c92f37404893cce14a25379bcd84bb081e94f1b8.tar.bz2 traccar-server-c92f37404893cce14a25379bcd84bb081e94f1b8.zip |
Workaround for incorrect hemisphere (fix #2139)
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/WatchProtocolDecoder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/WatchProtocolDecoder.java b/src/org/traccar/protocol/WatchProtocolDecoder.java index ca63e701e..326552e7f 100644 --- a/src/org/traccar/protocol/WatchProtocolDecoder.java +++ b/src/org/traccar/protocol/WatchProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com) + * Copyright 2015 - 2016 Anton Tananaev (anton.tananaev@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -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 |