aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-04-18 12:09:44 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-04-18 12:09:44 -0700
commit3ecba816b23e278cac690a9ceb366b9637bba775 (patch)
tree7969a327fa4db8f4956bf0c1ebf075bc074d6436 /src/main/java/org/traccar
parent289df0dde0ecd7b1ab46e21467ced5010d8967df (diff)
downloadtrackermap-server-3ecba816b23e278cac690a9ceb366b9637bba775.tar.gz
trackermap-server-3ecba816b23e278cac690a9ceb366b9637bba775.tar.bz2
trackermap-server-3ecba816b23e278cac690a9ceb366b9637bba775.zip
Fix coordinates decoding
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/Tk103ProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/Tk103ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Tk103ProtocolDecoder.java
index 5dad1458d..ff33cb103 100644
--- a/src/main/java/org/traccar/protocol/Tk103ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Tk103ProtocolDecoder.java
@@ -60,9 +60,9 @@ public class Tk103ProtocolDecoder extends BaseProtocolDecoder {
.groupEnd()
.number("(dd)(dd)(dd),?") // date (mmddyy if comma-delimited, otherwise yyddmm)
.expression("([AV]),?") // validity
- .number(" *(d+)(dd.d+)") // latitude
+ .number(" *(d*)(dd.d+)") // latitude
.expression("([NS]),?")
- .number(" *(d+)(dd.d+)") // longitude
+ .number(" *(d*)(dd.d+)") // longitude
.expression("([EW]),?")
.number("([ d.]{1,5})(?:d*,)?") // speed
.number("(dd)(dd)(dd),?") // time (hhmmss)