Skip to content

Commit f71b26a

Browse files
committed
Fixes #51- Non interesting track appears as POI
1 parent a6b1d28 commit f71b26a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/il/org/osm/israelhiking/PlanetSearchProfile.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,13 @@ private boolean processWaterwayFeature(SourceFeature feature, FeatureCollector f
342342
}
343343

344344
private boolean processHighwayFeautre(SourceFeature feature, FeatureCollector features) throws GeometryException {
345-
if (!feature.hasTag("highway") || !feature.hasTag("name")) {
345+
if (!feature.hasTag("highway")) {
346346
return false;
347347
}
348+
if (!feature.hasTag("name")) {
349+
// Highways without a name should not be included in the search or POI layer.
350+
return true;
351+
}
348352
var point = GeoUtils.point(feature.worldGeometry().getCoordinate());
349353
var pointDocument = new PointDocument();
350354
convertTagsToDocument(pointDocument, feature);

0 commit comments

Comments
 (0)