Skip to content

Commit c3d2510

Browse files
committed
Fix issue with adding highways without names.
1 parent 4aeffd3 commit c3d2510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ private boolean processWaterwayFeature(SourceFeature feature, FeatureCollector f
350350
}
351351

352352
private boolean processHighwayFeautre(SourceFeature feature, FeatureCollector features) throws GeometryException {
353-
if (!feature.hasTag("highway")) {
353+
if (!feature.hasTag("highway") || !feature.hasTag("name")) {
354354
return false;
355355
}
356356
var point = GeoUtils.point(feature.worldGeometry().getCoordinate());

0 commit comments

Comments
 (0)