diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-12-31 11:30:39 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-12-31 11:30:39 +1300 |
commit | c241127ab32eab9a63cc04fdbd99c08fa0e7b25f (patch) | |
tree | cb7579dc6a3779aa23b23262cd6611d34e1a1eb0 /src/org/traccar/protocol | |
parent | faeecdffcf78783ee030d0f9060e1f7656f9f707 (diff) | |
download | trackermap-server-c241127ab32eab9a63cc04fdbd99c08fa0e7b25f.tar.gz trackermap-server-c241127ab32eab9a63cc04fdbd99c08fa0e7b25f.tar.bz2 trackermap-server-c241127ab32eab9a63cc04fdbd99c08fa0e7b25f.zip |
Fix Orion negative coordites
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/OrionProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/OrionProtocolDecoder.java b/src/org/traccar/protocol/OrionProtocolDecoder.java index 6ba665614..f20bb6d72 100644 --- a/src/org/traccar/protocol/OrionProtocolDecoder.java +++ b/src/org/traccar/protocol/OrionProtocolDecoder.java @@ -53,7 +53,7 @@ public class OrionProtocolDecoder extends BaseProtocolDecoder { private static double convertCoordinate(int value) { double degrees = value / 1000000; - double minutes = (Math.abs(value) % 1000000) / 10000.0; + double minutes = (value % 1000000) / 10000.0; return degrees + minutes / 60; } |