aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/Parser.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-27 10:56:05 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-27 10:56:05 +1300
commit52f6ed7567fc11babf831401ac9744f9ebd7c735 (patch)
treef355fae03a740567387869262ffe89661afa7872 /src/org/traccar/helper/Parser.java
parent622706ec1c8e2a78dae161a1db64b09247efbfd9 (diff)
downloadtrackermap-server-52f6ed7567fc11babf831401ac9744f9ebd7c735.tar.gz
trackermap-server-52f6ed7567fc11babf831401ac9744f9ebd7c735.tar.bz2
trackermap-server-52f6ed7567fc11babf831401ac9744f9ebd7c735.zip
Refactor Visiontek protocol decoder
Diffstat (limited to 'src/org/traccar/helper/Parser.java')
-rw-r--r--src/org/traccar/helper/Parser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/helper/Parser.java b/src/org/traccar/helper/Parser.java
index 9f24cacd0..f70fe2e89 100644
--- a/src/org/traccar/helper/Parser.java
+++ b/src/org/traccar/helper/Parser.java
@@ -101,7 +101,7 @@ public class Parser {
switch (format) {
case DEG_MIN_MIN_HEM:
coordinate = nextInt();
- coordinate += (nextInt() + nextInt() / 1000.0) / 60;
+ coordinate += Double.parseDouble(next() + '.' + next()) / 60;
hemisphere = next();
break;
case HEM_DEG: