aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/H02ProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/H02ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/H02ProtocolDecoder.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/H02ProtocolDecoder.java b/src/org/traccar/protocol/H02ProtocolDecoder.java
index 2b8adda4a..c4ba6ffa3 100644
--- a/src/org/traccar/protocol/H02ProtocolDecoder.java
+++ b/src/org/traccar/protocol/H02ProtocolDecoder.java
@@ -123,15 +123,15 @@ public class H02ProtocolDecoder extends BaseProtocolDecoder {
.number("(dd)(dd)(dd),") // time
.expression("([AV])?,") // validity
.groupBegin()
- .number("(d+)(dd.d+),") // latitude
- .or()
.number("-(d+)-(d+.d+),") // latitude
+ .or()
+ .number("(d+)(dd.d+),") // latitude
.groupEnd()
.expression("([NS]),")
.groupBegin()
- .number("(d+)(dd.d+),") // longitude
- .or()
.number("-(d+)-(d+.d+),") // longitude
+ .or()
+ .number("(d+)(dd.d+),") // longitude
.groupEnd()
.expression("([EW]),")
.number("(d+.?d*),") // speed
@@ -164,14 +164,14 @@ public class H02ProtocolDecoder extends BaseProtocolDecoder {
}
if (parser.hasNext(2)) {
- position.setLatitude(parser.nextCoordinate());
+ position.setLatitude(-parser.nextCoordinate());
}
if (parser.hasNext(2)) {
position.setLatitude(parser.nextCoordinate());
}
if (parser.hasNext(2)) {
- position.setLongitude(parser.nextCoordinate());
+ position.setLongitude(-parser.nextCoordinate());
}
if (parser.hasNext(2)) {
position.setLongitude(parser.nextCoordinate());