From dac0cf725b640f0ef33fc91171881ae89cd30f4d Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 31 Mar 2015 22:29:48 -0400 Subject: [PATCH] support parsing all Google Maps URLs This adds support for hosts like: * www.google.com.tr * www.google.co.uk and many more... --- OsmAnd-java/src/net/osmand/util/GeoPointParserUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/util/GeoPointParserUtil.java b/OsmAnd-java/src/net/osmand/util/GeoPointParserUtil.java index 545fd5c1c3..3f03497517 100644 --- a/OsmAnd-java/src/net/osmand/util/GeoPointParserUtil.java +++ b/OsmAnd-java/src/net/osmand/util/GeoPointParserUtil.java @@ -861,7 +861,7 @@ public class GeoPointParserUtil { return new GeoParsedPoint(matcher.group(1), matcher.group(2), z, params.get("text")); } } - } else if (host.matches("(?:www\\.)?(?:maps\\.)?google\\.[a-z]+")) { + } else if (host.matches("(?:www\\.)?(?:maps\\.)?google\\.[a-z.]+")) { Map params = getQueryParameters(uri); if(params.containsKey("daddr")){ return parseGoogleMapsPath(params.get("daddr"), params);