Think that's how it needs to be

This commit is contained in:
Hardy 2019-03-06 19:04:43 +01:00 committed by GitHub
parent ed8eebd086
commit 07e539d42d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);