diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-24 22:27:30 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-24 22:27:30 +1300 |
commit | 6e1b6dc596e50fe0460abbc252540674c72153b1 (patch) | |
tree | afd65939b7246a4ab5fc1ccc735200a104c0df8d /src/org/traccar | |
parent | 91d94457e0a8eedf9824bb2c1e1bce4864308352 (diff) | |
download | traccar-server-6e1b6dc596e50fe0460abbc252540674c72153b1.tar.gz traccar-server-6e1b6dc596e50fe0460abbc252540674c72153b1.tar.bz2 traccar-server-6e1b6dc596e50fe0460abbc252540674c72153b1.zip |
Correctly decode negative coords (fix #2479)
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/helper/Parser.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/helper/Parser.java b/src/org/traccar/helper/Parser.java index dcea1c8f7..2f99d6e49 100644 --- a/src/org/traccar/helper/Parser.java +++ b/src/org/traccar/helper/Parser.java @@ -155,7 +155,7 @@ public class Parser { } if (hemisphere != null && (hemisphere.equals("S") || hemisphere.equals("W") || hemisphere.equals("-"))) { - coordinate = -coordinate; + coordinate = -Math.abs(coordinate); } return coordinate; |