aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/TeraTrackProtocolDecoder.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/java/org/traccar/protocol/TeraTrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeraTrackProtocolDecoder.java
index 7cd678f8a..8f4438fbb 100644
--- a/src/main/java/org/traccar/protocol/TeraTrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TeraTrackProtocolDecoder.java
@@ -57,12 +57,8 @@ public class TeraTrackProtocolDecoder extends BaseProtocolDecoder {
position.setTime(dateFormat.parse(json.getString("DateTime")));
position.setValid(true);
-
- double latitude = Double.parseDouble(json.getString("Latitude"));
- position.setLatitude(json.getString("LatitudeState").equals("0") ? -latitude : latitude);
- double longitude = Double.parseDouble(json.getString("Longitude"));
- position.setLongitude(json.getString("LongitudeState").equals("0") ? -longitude : longitude);
-
+ position.setLatitude(Double.parseDouble(json.getString("Latitude")));
+ position.setLongitude(Double.parseDouble(json.getString("Longitude")));
position.setSpeed(UnitsConverter.knotsFromKph(Integer.parseInt(json.getString("Speed"))));
position.set(Position.KEY_ODOMETER, Integer.parseInt(json.getString("Mileage")));