aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/RstProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/RstProtocolDecoder.java b/src/main/java/org/traccar/protocol/RstProtocolDecoder.java
index db2c35c3f..7b6d2f042 100644
--- a/src/main/java/org/traccar/protocol/RstProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/RstProtocolDecoder.java
@@ -45,8 +45,8 @@ public class RstProtocolDecoder extends BaseProtocolDecoder {
.number("(dd):(dd):(dd);") // event time
.number("(dd)-(dd)-(dddd) ") // fix date
.number("(dd):(dd):(dd);") // fix time
- .number("(-?d+.d+);") // longitude
.number("(-?d+.d+);") // latitude
+ .number("(-?d+.d+);") // longitude
.number("(d+);") // speed
.number("(d+);") // course
.number("(-?d+);") // altitude
@@ -88,8 +88,8 @@ public class RstProtocolDecoder extends BaseProtocolDecoder {
position.setDeviceTime(parser.nextDateTime(Parser.DateTimeFormat.DMY_HMS));
position.setFixTime(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.nextInt());