Skip to content

Commit 03fcb97

Browse files
committed
Update search to include what was discussed.
1 parent c3d2510 commit 03fcb97

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -426,14 +426,12 @@ private void addNonIconFeaturesToElasricseach(SourceFeature feature) throws Geom
426426
return;
427427
}
428428
var shouldBeIncluded = false;
429-
if (feature.hasTag("amenity", "place_of_worship")) {
430-
shouldBeIncluded = true;
431-
}
432-
if (feature.hasTag("shop", "bicycle")) {
433-
shouldBeIncluded = true;
434-
}
435-
436-
if (feature.hasTag("railway", "station")) {
429+
if (feature.hasTag("amenity", "place_of_worship") ||
430+
feature.hasTag("shop", "bicycle") ||
431+
feature.hasTag("railway", "station") ||
432+
feature.hasTag("aerialway", "station") ||
433+
feature.hasTag("natural", "valley", "ridge") ||
434+
(feature.hasTag("landuse", "recreation_ground") && feature.hasTag("sport", "mtb"))) {
437435
shouldBeIncluded = true;
438436
}
439437

0 commit comments

Comments
 (0)