aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-02-26 15:23:08 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-02-26 15:24:19 +1300
commitd05bee19a973798554bf9b9f5563c5a8e5ba4d5e (patch)
tree05435a5b174b549a0d8ee160051b16bba6f684d3 /src/org
parentb82431f69fff7ea7c602aa41d8eddc6dc1fc6e68 (diff)
downloadtrackermap-server-d05bee19a973798554bf9b9f5563c5a8e5ba4d5e.tar.gz
trackermap-server-d05bee19a973798554bf9b9f5563c5a8e5ba4d5e.tar.bz2
trackermap-server-d05bee19a973798554bf9b9f5563c5a8e5ba4d5e.zip
Flexible coordinates format for Xexun
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/XexunProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/XexunProtocolDecoder.java b/src/org/traccar/protocol/XexunProtocolDecoder.java
index 0929ee99b..bbf4d9453 100644
--- a/src/org/traccar/protocol/XexunProtocolDecoder.java
+++ b/src/org/traccar/protocol/XexunProtocolDecoder.java
@@ -38,8 +38,8 @@ public class XexunProtocolDecoder extends BaseProtocolDecoder {
.expression("G[PN]RMC,")
.number("(dd)(dd)(dd).(d+),") // time
.expression("([AV]),") // validity
- .number("(d+)(dd.d+),([NS]),") // latitude
- .number("(d+)(dd.d+),([EW])?,") // longitude
+ .number("(d+?)?(d?d.d+),([NS]),") // latitude
+ .number("(d+?)?(d?d.d+),([EW])?,") // longitude
.number("(d+.?d*),") // speed
.number("(d+.?d*)?,") // course
.number("(dd)(dd)(dd),") // date