- DataPoint p = new DataPoint(new Latitude(lineComps[2]), new Longitude(lineComps[3]), null);
- double distFromHere = Distance.convertRadiansToDistance(
- DataPoint.calculateRadiansBetween(p, herePoint), UnitSetLibrary.UNITS_KILOMETRES);
- if (distFromHere < MAX_DISTANCE)
- {
- SearchResult gallery = new SearchResult();
- gallery.setTrackName(I18nManager.getText("dialog.wikipedia.gallery") + ": " + lineComps[0]);
- gallery.setDescription(lineComps[1]);
- gallery.setLatitude(lineComps[2]);
- gallery.setLongitude(lineComps[3]);
- gallery.setWebUrl("https://commons.wikimedia.org/wiki/" + lineComps[0]);
- gallery.setLength(distFromHere * 1000.0); // convert from km to m
- trackList.add(gallery);
- }
+ SearchResult gallery = new SearchResult();
+ gallery.setTrackName(I18nManager.getText("dialog.wikipedia.gallery") + ": " + lineComps[0]);
+ gallery.setDescription(lineComps[1]);
+ gallery.setLatitude(lineComps[2]);
+ gallery.setLongitude(lineComps[3]);
+ gallery.setWebUrl("https://commons.wikimedia.org/wiki/" + lineComps[0]);
+ gallery.setLength(distFromHere * 1000.0); // convert from km to m
+ trackList.add(gallery);