From 0bafa34ebceba731aae2b45ae9e05c8f55b66b0e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 20 May 2017 22:16:35 +1200 Subject: Fix DMT HTTP coordinates decoding --- src/org/traccar/protocol/DmtHttpProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar') 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")); -- cgit v1.2.3