aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/TrackboxProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-03 12:41:03 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-03 12:41:03 +1300
commit15079797152451e6d04af6527ab4a38209dce1d7 (patch)
tree478eea8b7dfcd8a938a345b4e17c8cf0d8080ac9 /src/org/traccar/protocol/TrackboxProtocolDecoder.java
parentc27a9280838a20a18df2fdabbf5de1db85cab39d (diff)
downloadtrackermap-server-15079797152451e6d04af6527ab4a38209dce1d7.tar.gz
trackermap-server-15079797152451e6d04af6527ab4a38209dce1d7.tar.bz2
trackermap-server-15079797152451e6d04af6527ab4a38209dce1d7.zip
Refactor TR900 protocol decoder
Diffstat (limited to 'src/org/traccar/protocol/TrackboxProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/TrackboxProtocolDecoder.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/org/traccar/protocol/TrackboxProtocolDecoder.java b/src/org/traccar/protocol/TrackboxProtocolDecoder.java
index 2cd2b98c2..bf4c4f34d 100644
--- a/src/org/traccar/protocol/TrackboxProtocolDecoder.java
+++ b/src/org/traccar/protocol/TrackboxProtocolDecoder.java
@@ -32,17 +32,17 @@ public class TrackboxProtocolDecoder extends BaseProtocolDecoder {
}
private static final Pattern PATTERN = new PatternBuilder()
- .number("(dd)(dd)(dd).(ddd),") // Time
- .number("(dd)(dd.dddd)([NS]),") // Latitude (DDMM.MMMM)
- .number("(ddd)(dd.dddd)([EW]),") // Longitude (DDDMM.MMMM)
- .number("(d+.d),") // HDOP
- .number("(-?d+.?d*),") // Altitude
- .number("(d),") // Fix Type
- .number("(d+.d+),") // Course
- .number("d+.d+,") // Speed (kph)
- .number("(d+.d+),") // Speed (knots)
- .number("(dd)(dd)(dd),") // Date
- .number("(d+)") // Satellites
+ .number("(dd)(dd)(dd).(ddd),") // time
+ .number("(dd)(dd.dddd)([NS]),") // latitude
+ .number("(ddd)(dd.dddd)([EW]),") // longitude
+ .number("(d+.d),") // hdop
+ .number("(-?d+.?d*),") // altitude
+ .number("(d),") // fix type
+ .number("(d+.d+),") // course
+ .number("d+.d+,") // speed (kph)
+ .number("(d+.d+),") // speed (knots)
+ .number("(dd)(dd)(dd),") // date
+ .number("(d+)") // satellites
.compile();
private void sendResponse(Channel channel) {