diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-19 14:03:56 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-19 14:03:56 +1200 |
commit | 4aa2838cd7a71ee1d0c819ce6a37bd2aaddd233d (patch) | |
tree | 5eb11de2b2344cd5fb7f7e70079d8567677940d3 /src/org | |
parent | 278712a8720e1e93e63063d7854a1767dd06c3f2 (diff) | |
download | trackermap-server-4aa2838cd7a71ee1d0c819ce6a37bd2aaddd233d.tar.gz trackermap-server-4aa2838cd7a71ee1d0c819ce6a37bd2aaddd233d.tar.bz2 trackermap-server-4aa2838cd7a71ee1d0c819ce6a37bd2aaddd233d.zip |
Fix Haicom hemisphere decoding
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/HaicomProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/HaicomProtocolDecoder.java b/src/org/traccar/protocol/HaicomProtocolDecoder.java index fc144e934..5955ac905 100644 --- a/src/org/traccar/protocol/HaicomProtocolDecoder.java +++ b/src/org/traccar/protocol/HaicomProtocolDecoder.java @@ -98,13 +98,13 @@ public class HaicomProtocolDecoder extends BaseProtocolDecoder { // Latitude Double latitude = Double.valueOf(parser.group(index++)); latitude += Double.valueOf(parser.group(index++)) / 60000; - if ((flags & 0x2) == 0) latitude = -latitude; + if ((flags & 0x4) == 0) latitude = -latitude; position.setLatitude(latitude); // Longitude Double longitude = Double.valueOf(parser.group(index++)); longitude += Double.valueOf(parser.group(index++)) / 60000; - if ((flags & 0x4) == 0) longitude = -longitude; + if ((flags & 0x2) == 0) longitude = -longitude; position.setLongitude(longitude); // Speed |