aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-13 08:23:26 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-13 08:23:26 +1300
commit55f11c9dda7394d4c8c96bfe5da9497756df6866 (patch)
treec8d50930db4681d5e1ac3af8e6f01cc0524bc2b0 /src/org/traccar/helper
parentd23727f18478d816b4928c611847bdff2ef1f15c (diff)
downloadtrackermap-server-55f11c9dda7394d4c8c96bfe5da9497756df6866.tar.gz
trackermap-server-55f11c9dda7394d4c8c96bfe5da9497756df6866.tar.bz2
trackermap-server-55f11c9dda7394d4c8c96bfe5da9497756df6866.zip
Add support for U-pro protocol
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 c5f5d2e37..a36d8ee6e 100644
--- a/src/org/traccar/helper/Parser.java
+++ b/src/org/traccar/helper/Parser.java
@@ -89,6 +89,7 @@ public class Parser {
public enum CoordinateFormat {
DEG_DEG,
DEG_HEM,
+ DEG_MIN_MIN,
DEG_MIN_HEM,
DEG_MIN_MIN_HEM,
HEM_DEG_MIN_MIN,
@@ -109,6 +110,10 @@ public class Parser {
coordinate = nextDouble();
hemisphere = next();
break;
+ case DEG_MIN_MIN:
+ coordinate = nextInt();
+ coordinate += Double.parseDouble(next() + '.' + next()) / 60;
+ break;
case DEG_MIN_MIN_HEM:
coordinate = nextInt();
coordinate += Double.parseDouble(next() + '.' + next()) / 60;