diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-11-17 02:05:27 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-11-17 02:05:27 +1300 |
commit | fb9cbb2b74dc0060bd0dc5d0b3bfeb958ed6f3b5 (patch) | |
tree | 7051d3b3d10b26e9f7dbf33de2316f5a9dee67b1 /src/org | |
parent | 37eb70afa59495e7723d215ba5c90e7a871572eb (diff) | |
download | traccar-server-fb9cbb2b74dc0060bd0dc5d0b3bfeb958ed6f3b5.tar.gz traccar-server-fb9cbb2b74dc0060bd0dc5d0b3bfeb958ed6f3b5.tar.bz2 traccar-server-fb9cbb2b74dc0060bd0dc5d0b3bfeb958ed6f3b5.zip |
Fix IVT 401 coordinates decoding
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/Ivt401ProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Ivt401ProtocolDecoder.java b/src/org/traccar/protocol/Ivt401ProtocolDecoder.java index c42f9fcc0..f209ee09e 100644 --- a/src/org/traccar/protocol/Ivt401ProtocolDecoder.java +++ b/src/org/traccar/protocol/Ivt401ProtocolDecoder.java @@ -38,8 +38,8 @@ public class Ivt401ProtocolDecoder extends BaseProtocolDecoder { .number("(d+),") // imei .number("(dd)(dd)(dd),") // date (ddmmyy) .number("(dd)(dd)(dd),") // time (hhmmss) - .number("([-+]d+.d+),") // longitude .number("([-+]d+.d+),") // latitude + .number("([-+]d+.d+),") // longitude .number("(d+),") // speed .number("(d+),") // course .number("(-?d+.?d*),") // altitude @@ -74,8 +74,8 @@ public class Ivt401ProtocolDecoder extends BaseProtocolDecoder { position.setTime(parser.nextDateTime(Parser.DateTimeFormat.DMY_HMS)); - position.setLongitude(parser.nextDouble()); position.setLatitude(parser.nextDouble()); + position.setLongitude(parser.nextDouble()); position.setSpeed(UnitsConverter.knotsFromKph(parser.nextInt())); position.setCourse(parser.nextInt()); position.setAltitude(parser.nextDouble()); |