From 6a730e7cf160aca0fb2e04d69cbcf65a3596f545 Mon Sep 17 00:00:00 2001 From: theirix Date: Sun, 8 Jan 2017 12:05:30 +0300 Subject: [PATCH] Added OLC converters to LocationConvert --- OsmAnd-java/src/net/osmand/LocationConvert.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/LocationConvert.java b/OsmAnd-java/src/net/osmand/LocationConvert.java index 222dbe45e6..66e7417bc7 100644 --- a/OsmAnd-java/src/net/osmand/LocationConvert.java +++ b/OsmAnd-java/src/net/osmand/LocationConvert.java @@ -1,7 +1,12 @@ package net.osmand; +import com.google.openlocationcode.OpenLocationCode; + +import net.osmand.data.LatLon; + import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; +import java.util.IllegalFormatException; import java.util.Locale; import java.util.StringTokenizer; @@ -14,6 +19,7 @@ public class LocationConvert { public static final int FORMAT_MINUTES = 1; public static final int FORMAT_SECONDS = 2; public static final int UTM_FORMAT = 3; + public static final int OLC_FORMAT = 4; private static final char DELIM = ':'; @@ -149,5 +155,4 @@ public class LocationConvert { sb.append(df.format(coordinate)); return sb.toString(); } - }