aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/DmtHttpProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-05-20 22:16:35 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-05-20 22:16:35 +1200
commit0bafa34ebceba731aae2b45ae9e05c8f55b66b0e (patch)
treef4d3037dc84915cfc271ed523f6070592ee4bb6d /src/org/traccar/protocol/DmtHttpProtocolDecoder.java
parent6879624fd6290eea9a7f45047ba089ee1435d3ce (diff)
downloadtrackermap-server-0bafa34ebceba731aae2b45ae9e05c8f55b66b0e.tar.gz
trackermap-server-0bafa34ebceba731aae2b45ae9e05c8f55b66b0e.tar.bz2
trackermap-server-0bafa34ebceba731aae2b45ae9e05c8f55b66b0e.zip
Fix DMT HTTP coordinates decoding
Diffstat (limited to 'src/org/traccar/protocol/DmtHttpProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/DmtHttpProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/DmtHttpProtocolDecoder.java b/src/org/traccar/protocol/DmtHttpProtocolDecoder.java
index 4592bdd55..1bd808a1f 100644
--- a/src/org/traccar/protocol/DmtHttpProtocolDecoder.java
+++ b/src/org/traccar/protocol/DmtHttpProtocolDecoder.java
@@ -95,7 +95,7 @@ public class DmtHttpProtocolDecoder extends BaseProtocolDecoder {
case 0:
position.setFixTime(dateFormat.parse(field.getString("GpsUTC")));
position.setLatitude(field.getJsonNumber("Lat").doubleValue());
- position.setLatitude(field.getJsonNumber("Long").doubleValue());
+ position.setLongitude(field.getJsonNumber("Long").doubleValue());
position.setAltitude(field.getInt("Alt"));
position.setSpeed(UnitsConverter.knotsFromCps(field.getInt("Spd")));
position.setCourse(field.getInt("Head"));