aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-27 12:39:55 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-27 12:39:55 +1300
commit0abae87d85964f7b0afd3e2d128be7a211ae4715 (patch)
treee16302fca042ae062dc917d1e23b1b584a1b8e86 /src/org/traccar/helper
parent52f6ed7567fc11babf831401ac9744f9ebd7c735 (diff)
downloadtrackermap-server-0abae87d85964f7b0afd3e2d128be7a211ae4715.tar.gz
trackermap-server-0abae87d85964f7b0afd3e2d128be7a211ae4715.tar.bz2
trackermap-server-0abae87d85964f7b0afd3e2d128be7a211ae4715.zip
Extend Visiontek protocol decoder (fix #1475)
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/Parser.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/org/traccar/helper/Parser.java b/src/org/traccar/helper/Parser.java
index f70fe2e89..bda7d6366 100644
--- a/src/org/traccar/helper/Parser.java
+++ b/src/org/traccar/helper/Parser.java
@@ -87,6 +87,7 @@ public class Parser {
}
public enum CoordinateFormat {
+ DEG_HEM,
DEG_MIN_HEM,
DEG_MIN_MIN_HEM,
HEM_DEG,
@@ -99,6 +100,10 @@ public class Parser {
String hemisphere;
switch (format) {
+ case DEG_HEM:
+ coordinate = nextDouble();
+ hemisphere = next();
+ break;
case DEG_MIN_MIN_HEM:
coordinate = nextInt();
coordinate += Double.parseDouble(next() + '.' + next()) / 60;