aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-24 22:27:30 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-24 22:27:30 +1300
commit6e1b6dc596e50fe0460abbc252540674c72153b1 (patch)
treeafd65939b7246a4ab5fc1ccc735200a104c0df8d /src/org/traccar/helper
parent91d94457e0a8eedf9824bb2c1e1bce4864308352 (diff)
downloadtrackermap-server-6e1b6dc596e50fe0460abbc252540674c72153b1.tar.gz
trackermap-server-6e1b6dc596e50fe0460abbc252540674c72153b1.tar.bz2
trackermap-server-6e1b6dc596e50fe0460abbc252540674c72153b1.zip
Correctly decode negative coords (fix #2479)
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/Parser.java2
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;