aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-08-16 22:14:00 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-08-16 22:14:00 -0700
commit8ac3babace6125aa430b39581e347d42996a7ce3 (patch)
tree746d560baf9632595ef43ee05e6df58bc05e64da /src/main/java/org/traccar/protocol
parent2cd7e378fd1414c04276d943c4310ea8bcc38725 (diff)
downloadtrackermap-server-8ac3babace6125aa430b39581e347d42996a7ce3.tar.gz
trackermap-server-8ac3babace6125aa430b39581e347d42996a7ce3.tar.bz2
trackermap-server-8ac3babace6125aa430b39581e347d42996a7ce3.zip
Swap coordinate values
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/MoovboxProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/MoovboxProtocolDecoder.java b/src/main/java/org/traccar/protocol/MoovboxProtocolDecoder.java
index 1c8cde8a2..3116d073c 100644
--- a/src/main/java/org/traccar/protocol/MoovboxProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MoovboxProtocolDecoder.java
@@ -89,8 +89,8 @@ public class MoovboxProtocolDecoder extends BaseHttpProtocolDecoder {
position.setValid(true);
position.setTime(new Date(Long.parseLong(xPath.evaluate("time", node)) * 1000));
- position.setLatitude(Double.parseDouble(xPath.evaluate("latitude", node)));
- position.setLongitude(Double.parseDouble(xPath.evaluate("longitude", node)));
+ position.setLatitude(Double.parseDouble(xPath.evaluate("longitude", node)));
+ position.setLongitude(Double.parseDouble(xPath.evaluate("latitude", node)));
position.setAltitude(Double.parseDouble(xPath.evaluate("altitude", node)));
position.setSpeed(Double.parseDouble(xPath.evaluate("speed", node)));