diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-03-12 06:49:06 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-03-12 06:49:06 +1300 |
commit | 51785ed622057269459c3abf6ba85d0001d71e71 (patch) | |
tree | ee94577e4d59fcc532e9307cb3222cbde762796a | |
parent | b2ab0b471591494523b12e5f1810a481b2cd1a65 (diff) | |
download | trackermap-server-51785ed622057269459c3abf6ba85d0001d71e71.tar.gz trackermap-server-51785ed622057269459c3abf6ba85d0001d71e71.tar.bz2 trackermap-server-51785ed622057269459c3abf6ba85d0001d71e71.zip |
Fix Cautela coordinates decoding
-rw-r--r-- | src/org/traccar/protocol/CautelaProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/CautelaProtocolDecoder.java b/src/org/traccar/protocol/CautelaProtocolDecoder.java index 94ba35c91..d7bf4fb51 100644 --- a/src/org/traccar/protocol/CautelaProtocolDecoder.java +++ b/src/org/traccar/protocol/CautelaProtocolDecoder.java @@ -36,8 +36,8 @@ public class CautelaProtocolDecoder extends BaseProtocolDecoder { .number("(d+),") // type .number("(d+),") // imei .number("(dd),(dd),(dd),") // date (ddmmyy) - .number("(-?d+.d+),") // longitude .number("(-?d+.d+),") // latitude + .number("(-?d+.d+),") // longitude .number("(dd)(dd),") // time (hhmm) .any() .compile(); @@ -65,8 +65,8 @@ public class CautelaProtocolDecoder extends BaseProtocolDecoder { dateBuilder.setDateReverse(parser.nextInt(), parser.nextInt(), parser.nextInt()); position.setValid(true); - position.setLongitude(parser.nextDouble()); position.setLatitude(parser.nextDouble()); + position.setLongitude(parser.nextDouble()); dateBuilder.setHour(parser.nextInt()).setMinute(parser.nextInt()); position.setTime(dateBuilder.getDate()); |