Skip to content

Commit 70e0504

Browse files
committed
Add support for scenic road - issue 2199
1 parent 1ec234c commit 70e0504

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public List<OsmRelationInfo> preprocessOsmRelation(OsmElement.Relation relation)
103103

104104
if (!"icon-river".equals(pointDocument.poiIcon) &&
105105
!"Bicycle".equals(pointDocument.poiCategory) &&
106-
!"Hiking".equals(pointDocument.poiCategory)) {
106+
!"Hiking".equals(pointDocument.poiCategory) &&
107+
!"4x4".equals(pointDocument.poiCategory)) {
107108
return null;
108109
}
109110
// then store a RouteRelationInfo instance with tags we'll need later
@@ -641,6 +642,13 @@ private void setIconColorCategory(PointDocument pointDocument, WithTags feature)
641642
pointDocument.poiIcon = "icon-bike";
642643
pointDocument.poiCategory = "Bicycle";
643644
return;
645+
case "road":
646+
if ("yes".equals(feature.getTag("scenic"))) {
647+
pointDocument.poiIconColor = "black";
648+
pointDocument.poiCategory = "4x4";
649+
pointDocument.poiIcon = "icon-four-by-four";
650+
return;
651+
}
644652
}
645653
}
646654
if (feature.getString("historic") != null) {

0 commit comments

Comments
 (0)