From 881a6748087882f85fa0865649198745e646e292 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 10 Jul 2017 01:38:52 +0200 Subject: [PATCH] Add extra test --- OsmAnd-java/src/net/osmand/util/GeoPointParserUtil.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OsmAnd-java/src/net/osmand/util/GeoPointParserUtil.java b/OsmAnd-java/src/net/osmand/util/GeoPointParserUtil.java index 8f472ce0a0..ca351448c2 100644 --- a/OsmAnd-java/src/net/osmand/util/GeoPointParserUtil.java +++ b/OsmAnd-java/src/net/osmand/util/GeoPointParserUtil.java @@ -368,6 +368,12 @@ public class GeoPointParserUtil { System.out.println("url: " + url); actual = GeoPointParserUtil.parse(url); assertGeoPoint(actual, new GeoParsedPoint(ilat, ilon, z)); + + // https://maps.google.com/maps?q=loc:-21.8835112,-47.7838932 (Name) + url = "https://maps.google.com/maps?q=loc:" + dlat + "," + dlon + " (Name)" ; + System.out.println("url: " + url); + actual = GeoPointParserUtil.parse(url); + assertGeoPoint(actual, new GeoParsedPoint(dlat, dlon)); // http://maps.google.com/maps/ll=34.99393,-106.61568,z=11 url = "http://maps.google.com/maps/ll=" + dlat + "," + dlon + ",z=" + z;