From 07e539d42d49ff10d2e23816e1d0ee0f3c1a43ff Mon Sep 17 00:00:00 2001 From: Hardy Date: Wed, 6 Mar 2019 19:04:43 +0100 Subject: [PATCH] Think that's how it needs to be --- .../test/java/net/osmand/util/GeoPointParserUtilTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd-java/src/test/java/net/osmand/util/GeoPointParserUtilTest.java b/OsmAnd-java/src/test/java/net/osmand/util/GeoPointParserUtilTest.java index 98ba6ed87e..f3d5069505 100644 --- a/OsmAnd-java/src/test/java/net/osmand/util/GeoPointParserUtilTest.java +++ b/OsmAnd-java/src/test/java/net/osmand/util/GeoPointParserUtilTest.java @@ -265,11 +265,11 @@ public class GeoPointParserUtilTest { actual = GeoPointParserUtil.parse(url); assertGeoPoint(actual, new GeoParsedPoint(dlat, dlon, z)); - // http://maps.google.com/maps?q=N34.939,E-106 - url = "http://maps.google.com/maps?q=N" + dlat + ",E" + Math.abs(dlon); + // http://maps.google.com/maps?q=N34.939,W106 + url = "http://maps.google.com/maps?q=N" + dlat + ",W" + Math.abs(dlon); System.out.println("url: " + url); actual = GeoPointParserUtil.parse(url); - assertGeoPoint(actual, new GeoParsedPoint(dlat, Math.abs(dlon))); + assertGeoPoint(actual, new GeoParsedPoint(dlat, -Math.abs(dlon))); url = "http://maps.google.com/maps?f=d&saddr=" + dlat +"," +dlon +"&daddr=" +dlat +"," +dlon+"&hl=en"; System.out.println("url: " + url);