diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-02-23 10:37:33 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-02-23 10:37:33 +1300 |
commit | 993ac257133211953eb8c8d862c133f2d12de274 (patch) | |
tree | 1150a1fe231af613282b7c9655f8c67a044b40fe | |
parent | 7118504798b62b4f0c0186a19e8417463d653383 (diff) | |
download | trackermap-server-993ac257133211953eb8c8d862c133f2d12de274.tar.gz trackermap-server-993ac257133211953eb8c8d862c133f2d12de274.tar.bz2 trackermap-server-993ac257133211953eb8c8d862c133f2d12de274.zip |
Fix Telic problem with latitude value
-rw-r--r-- | src/org/traccar/protocol/TelicProtocolDecoder.java | 2 | ||||
-rw-r--r-- | test/org/traccar/protocol/TelicProtocolDecoderTest.java | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TelicProtocolDecoder.java b/src/org/traccar/protocol/TelicProtocolDecoder.java index 6e6e94325..ba6d9c47e 100644 --- a/src/org/traccar/protocol/TelicProtocolDecoder.java +++ b/src/org/traccar/protocol/TelicProtocolDecoder.java @@ -81,7 +81,7 @@ public class TelicProtocolDecoder extends BaseProtocolDecoder { if (parser.hasNext(6)) { position.setLongitude(parser.nextCoordinate(Parser.CoordinateFormat.DEG_MIN_MIN)); - position.setLongitude(parser.nextCoordinate(Parser.CoordinateFormat.DEG_MIN_MIN)); + position.setLatitude(parser.nextCoordinate(Parser.CoordinateFormat.DEG_MIN_MIN)); } if (parser.hasNext(2)) { diff --git a/test/org/traccar/protocol/TelicProtocolDecoderTest.java b/test/org/traccar/protocol/TelicProtocolDecoderTest.java index a0d9febad..a922c390d 100644 --- a/test/org/traccar/protocol/TelicProtocolDecoderTest.java +++ b/test/org/traccar/protocol/TelicProtocolDecoderTest.java @@ -11,6 +11,9 @@ public class TelicProtocolDecoderTest extends ProtocolTest { TelicProtocolDecoder decoder = new TelicProtocolDecoder(new TelicProtocol()); verifyPosition(decoder, text( + "002017297899,220216111100,0,220216111059,014306446,46626713,3,7,137,7,,,448,266643,,0000,00,0,206,0,0407")); + + verifyPosition(decoder, text( "003097061325,210216112630,0,210216001405,246985,594078,3,0,283,12,,,23,4418669,,0010,00,117,0,0,0108")); verifyNothing(decoder, text( |