diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-28 14:23:04 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-28 14:23:04 +1300 |
commit | e60132dc040d2af3a5ad4f7ea8ee2e5fab7675ee (patch) | |
tree | 7486895f765522264de3d8b7c130eacae7697275 /src/org | |
parent | 3971b656af48b25a54ab9d486773dd9e6739e0ac (diff) | |
download | trackermap-server-e60132dc040d2af3a5ad4f7ea8ee2e5fab7675ee.tar.gz trackermap-server-e60132dc040d2af3a5ad4f7ea8ee2e5fab7675ee.tar.bz2 trackermap-server-e60132dc040d2af3a5ad4f7ea8ee2e5fab7675ee.zip |
Format pattern builder comments
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/FreedomProtocolDecoder.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/FreedomProtocolDecoder.java b/src/org/traccar/protocol/FreedomProtocolDecoder.java index 40abe1b8d..c5ef5a146 100644 --- a/src/org/traccar/protocol/FreedomProtocolDecoder.java +++ b/src/org/traccar/protocol/FreedomProtocolDecoder.java @@ -32,12 +32,14 @@ public class FreedomProtocolDecoder extends BaseProtocolDecoder { private static final Pattern PATTERN = new PatternBuilder() .text("IMEI,") - .number("(d+),") // IMEI - .number("(dddd)/(dd)/(dd), ") // Date - .number("(dd):(dd):(dd), ") // Time - .number("([NS]), Lat:(dd)(d+.d+), ") // Latitude - .number("([EW]), Lon:(ddd)(d+.d+), ") // Longitude - .text("Spd:").number("(d+.d+)") // Speed + .number("(d+),") // imei + .number("(dddd)/(dd)/(dd), ") // date + .number("(dd):(dd):(dd), ") // time + .expression("([NS]), ") + .number("Lat:(dd)(d+.d+), ") // latitude + .expression("([EW]), ") + .number("Lon:(ddd)(d+.d+), ") // longitude + .text("Spd:").number("(d+.d+)") // speed .any() .compile(); |