diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-27 12:39:55 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-27 12:39:55 +1300 |
commit | 0abae87d85964f7b0afd3e2d128be7a211ae4715 (patch) | |
tree | e16302fca042ae062dc917d1e23b1b584a1b8e86 /src/org/traccar/helper | |
parent | 52f6ed7567fc11babf831401ac9744f9ebd7c735 (diff) | |
download | traccar-server-0abae87d85964f7b0afd3e2d128be7a211ae4715.tar.gz traccar-server-0abae87d85964f7b0afd3e2d128be7a211ae4715.tar.bz2 traccar-server-0abae87d85964f7b0afd3e2d128be7a211ae4715.zip |
Extend Visiontek protocol decoder (fix #1475)
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r-- | src/org/traccar/helper/Parser.java | 5 |
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; |