diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-05 11:46:57 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-05 11:46:57 +1300 |
commit | 3b3f7dddcb9a7ac43651cacc7cf05247a4f7d82b (patch) | |
tree | 88136af1f7247d91252e4316f9627ce091249ea2 /src/org/traccar/helper | |
parent | 344799f3be95dded17bf068c42c0e8776e82aa3f (diff) | |
download | trackermap-server-3b3f7dddcb9a7ac43651cacc7cf05247a4f7d82b.tar.gz trackermap-server-3b3f7dddcb9a7ac43651cacc7cf05247a4f7d82b.tar.bz2 trackermap-server-3b3f7dddcb9a7ac43651cacc7cf05247a4f7d82b.zip |
Refactor GpsMarker protocol decoder
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r-- | src/org/traccar/helper/Parser.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/traccar/helper/Parser.java b/src/org/traccar/helper/Parser.java index bda7d6366..8d6dd1a64 100644 --- a/src/org/traccar/helper/Parser.java +++ b/src/org/traccar/helper/Parser.java @@ -90,6 +90,7 @@ public class Parser { DEG_HEM, DEG_MIN_HEM, DEG_MIN_MIN_HEM, + HEM_DEG_MIN_MIN, HEM_DEG, HEM_DEG_MIN, HEM_DEG_MIN_HEM @@ -126,6 +127,12 @@ public class Parser { hemisphere = next(); } break; + case HEM_DEG_MIN_MIN: + hemisphere = next(); + coordinate = nextInt(); + coordinate += Double.parseDouble(next() + '.' + next()) / 60; + break; + case DEG_MIN_HEM: default: coordinate = nextInt(); coordinate += nextDouble() / 60; |