diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-13 08:23:26 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-13 08:23:26 +1300 |
commit | 55f11c9dda7394d4c8c96bfe5da9497756df6866 (patch) | |
tree | c8d50930db4681d5e1ac3af8e6f01cc0524bc2b0 /src/org/traccar/helper | |
parent | d23727f18478d816b4928c611847bdff2ef1f15c (diff) | |
download | trackermap-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.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 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; |