aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/Parser.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/helper/Parser.java')
-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;