Add parse test #1659
This commit is contained in:
parent
4f561a1b42
commit
822e3b9ea9
2 changed files with 9 additions and 1 deletions
|
@ -27,7 +27,7 @@ public class SearchPhrase {
|
|||
private List<BinaryMapIndexReader> indexes;
|
||||
private String lastWordTrim;
|
||||
private QuadRect cache1kmRect;
|
||||
private static final String DELIMITER = " ";
|
||||
private static final String DELIMITER = ",";
|
||||
|
||||
|
||||
public enum SearchPhraseDataType {
|
||||
|
|
|
@ -76,6 +76,8 @@ public class GeoPointParserUtil {
|
|||
System.out.println(" Passed!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
// geo:34,-106
|
||||
url = "geo:" + ilat + "," + ilon;
|
||||
System.out.println("url: " + url);
|
||||
|
@ -229,6 +231,12 @@ public class GeoPointParserUtil {
|
|||
actual = GeoPointParserUtil.parse(url);
|
||||
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);
|
||||
actual = GeoPointParserUtil.parse(url);
|
||||
assertGeoPoint(actual, new GeoParsedPoint(dlat, dlon));
|
||||
|
||||
// http://www.osmand.net/go?lat=34.99393&lon=-106.61568&z=11
|
||||
url = "http://www.osmand.net/go.html?lat=" + dlat + "&lon=" + dlon + "&z=" + z;
|
||||
System.out.println("url: " + url);
|
||||
|
|
Loading…
Reference in a new issue