diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-05-08 23:24:22 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-05-08 23:24:22 +1200 |
commit | 14b7897b6df25a144da1a329f4a088b52a01571b (patch) | |
tree | 3a9e67594db6fab8748b1d5fe295dc5e437609b3 /src/org/traccar | |
parent | 986912687a15f3d1376beae751a9160c3db5dc7a (diff) | |
download | trackermap-server-14b7897b6df25a144da1a329f4a088b52a01571b.tar.gz trackermap-server-14b7897b6df25a144da1a329f4a088b52a01571b.tar.bz2 trackermap-server-14b7897b6df25a144da1a329f4a088b52a01571b.zip |
Fix Teltonika negative coordinates (fix #234)
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/TeltonikaProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java index a7bdf6132..d0b07ccb4 100644 --- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java +++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java @@ -73,8 +73,8 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder { extendedInfo.set("priority", buf.readUnsignedByte()); - position.setLongitude(buf.readUnsignedInt() / 10000000.0); - position.setLatitude(buf.readUnsignedInt() / 10000000.0); + position.setLongitude(buf.readInt() / 10000000.0); + position.setLatitude(buf.readInt() / 10000000.0); position.setAltitude((double) buf.readUnsignedShort()); position.setCourse((double) buf.readUnsignedShort()); |