diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-05-20 22:16:35 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-05-20 22:16:35 +1200 |
commit | 0bafa34ebceba731aae2b45ae9e05c8f55b66b0e (patch) | |
tree | f4d3037dc84915cfc271ed523f6070592ee4bb6d /src | |
parent | 6879624fd6290eea9a7f45047ba089ee1435d3ce (diff) | |
download | trackermap-server-0bafa34ebceba731aae2b45ae9e05c8f55b66b0e.tar.gz trackermap-server-0bafa34ebceba731aae2b45ae9e05c8f55b66b0e.tar.bz2 trackermap-server-0bafa34ebceba731aae2b45ae9e05c8f55b66b0e.zip |
Fix DMT HTTP coordinates decoding
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/DmtHttpProtocolDecoder.java | 2 |
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")); |