aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-17 13:24:21 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-17 13:24:21 +1300
commit091edb35f76bf277ec0e22a738dd2825dfbe827f (patch)
tree0d9dedf09071a92177dd73c430e78a19123c945d /src/org/traccar/helper
parentda76f9195ec6fbf0e6a0a6419eec908b91f844b7 (diff)
downloadtraccar-server-091edb35f76bf277ec0e22a738dd2825dfbe827f.tar.gz
traccar-server-091edb35f76bf277ec0e22a738dd2825dfbe827f.tar.bz2
traccar-server-091edb35f76bf277ec0e22a738dd2825dfbe827f.zip
Refactor GlobalSat protocol decoder
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/Parser.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/org/traccar/helper/Parser.java b/src/org/traccar/helper/Parser.java
index 7694a9623..ef972600b 100644
--- a/src/org/traccar/helper/Parser.java
+++ b/src/org/traccar/helper/Parser.java
@@ -81,6 +81,7 @@ public class Parser {
public enum CoordinateFormat {
DEG_MIN_HEM,
HEM_DEG,
+ HEM_DEG_MIN,
HEM_DEG_MIN_HEM
}
@@ -93,6 +94,11 @@ public class Parser {
hemisphere = next();
coordinate = nextDouble();
break;
+ case HEM_DEG_MIN:
+ hemisphere = next();
+ coordinate = nextInt();
+ coordinate += nextDouble() / 60;
+ break;
case HEM_DEG_MIN_HEM:
hemisphere = next();
coordinate = nextInt();