diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-05 09:22:58 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-05 09:22:58 -0800 |
commit | 0443367a581100b4f9abd3d96a50793d80c93e45 (patch) | |
tree | bc5c6e8b5885e6c82ba36626aff6a73ce2753d96 /src/main/java/org/traccar/protocol/TelicProtocolDecoder.java | |
parent | 7f1e024bca381f93cf1d9e61dadc3bb2f4943da7 (diff) | |
download | trackermap-server-0443367a581100b4f9abd3d96a50793d80c93e45.tar.gz trackermap-server-0443367a581100b4f9abd3d96a50793d80c93e45.tar.bz2 trackermap-server-0443367a581100b4f9abd3d96a50793d80c93e45.zip |
Fix coordinates decoding (fix #4496)
Diffstat (limited to 'src/main/java/org/traccar/protocol/TelicProtocolDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/TelicProtocolDecoder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/TelicProtocolDecoder.java b/src/main/java/org/traccar/protocol/TelicProtocolDecoder.java index 457687b2e..efe155a88 100644 --- a/src/main/java/org/traccar/protocol/TelicProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/TelicProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 - 2019 Anton Tananaev (anton@traccar.org) + * Copyright 2014 - 2020 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,8 +42,8 @@ public class TelicProtocolDecoder extends BaseProtocolDecoder { .number("(dd)(dd)(dd)") // date (ddmmyy) .number("(dd)(dd)(dd),") // time (hhmmss) .groupBegin() - .number("(-?d{9}),") // longitude - .number("(-?d{8}),") // latitude + .number("(-?d{7,}),") // longitude + .number("(-?d{6,}),") // latitude .or() .number("(-?d+),") // longitude .number("(-?d+),") // latitude |