From fb9cbb2b74dc0060bd0dc5d0b3bfeb958ed6f3b5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 17 Nov 2017 02:05:27 +1300 Subject: Fix IVT 401 coordinates decoding --- src/org/traccar/protocol/Ivt401ProtocolDecoder.java | 4 ++-- 1 file 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()); -- cgit v1.2.3