Skip to content

Commit 65d5902

Browse files
committed
Confusing search results for נתניה #30 - improve icon for railways station
1 parent 6b9ebfc commit 65d5902

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,13 +429,17 @@ private void addNonIconFeaturesToElasricseach(SourceFeature feature) throws Geom
429429
}
430430
var pointDocument = new PointDocument();
431431
if (feature.hasTag("amenity", "place_of_worship") ||
432-
feature.hasTag("railway", "station") ||
433-
feature.hasTag("aerialway", "station") ||
434432
feature.hasTag("natural", "valley")) {
435433
pointDocument.poiIcon = "icon-search";
436434
pointDocument.poiIconColor = "black";
437435
pointDocument.poiCategory = "Other";
438436
}
437+
if (feature.hasTag("railway", "station") ||
438+
feature.hasTag("aerialway", "station")) {
439+
pointDocument.poiIcon = "icon-bus-stop";
440+
pointDocument.poiIconColor = "black";
441+
pointDocument.poiCategory = "Other";
442+
}
439443
if (feature.hasTag("natural", "ridge")) {
440444
pointDocument.poiIcon = "icon-peak";
441445
pointDocument.poiIconColor = "black";

0 commit comments

Comments
 (0)