Skip to content

Commit

Permalink
Update search to include what was discussed.
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Feb 7, 2025
1 parent c3d2510 commit 03fcb97
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/main/java/il/org/osm/israelhiking/PlanetSearchProfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -426,14 +426,12 @@ private void addNonIconFeaturesToElasricseach(SourceFeature feature) throws Geom
return;
}
var shouldBeIncluded = false;
if (feature.hasTag("amenity", "place_of_worship")) {
shouldBeIncluded = true;
}
if (feature.hasTag("shop", "bicycle")) {
shouldBeIncluded = true;
}

if (feature.hasTag("railway", "station")) {
if (feature.hasTag("amenity", "place_of_worship") ||
feature.hasTag("shop", "bicycle") ||
feature.hasTag("railway", "station") ||
feature.hasTag("aerialway", "station") ||
feature.hasTag("natural", "valley", "ridge") ||
(feature.hasTag("landuse", "recreation_ground") && feature.hasTag("sport", "mtb"))) {
shouldBeIncluded = true;
}

Expand Down

0 comments on commit 03fcb97

Please sign in to comment.