From 55f11c9dda7394d4c8c96bfe5da9497756df6866 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 13 Dec 2015 08:23:26 +1300 Subject: Add support for U-pro protocol --- src/org/traccar/helper/Parser.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/org/traccar/helper') 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; -- cgit v1.2.3