Skip to content

Commit 110c92c

Browse files
committed
Fix duplicate places
1 parent 31a8a1c commit 110c92c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ private boolean processOtherSourceFeature(SourceFeature feature, FeatureCollecto
403403

404404
setIconColorCategory(pointDocument, feature);
405405

406-
if (pointDocument.poiIcon == "icon-search" || (pointDocument.poiIcon == "icon-home" && !isInterestingPoint(pointDocument))) {
406+
if (pointDocument.poiIcon == "icon-search" ||
407+
(pointDocument.poiIcon == "icon-home" && (!isInterestingPoint(pointDocument) || !feature.isPoint()))) {
407408
return false;
408409
}
409410

@@ -690,7 +691,8 @@ private void setIconColorCategory(PointDocument pointDocument, WithTags feature)
690691

691692
if ("reservoir".equals(feature.getString("water")) ||
692693
"pond".equals(feature.getString("water")) ||
693-
"lake".equals(feature.getString("water"))) {
694+
"lake".equals(feature.getString("water")) ||
695+
"stream_pool".equals(feature.getString("water"))) {
694696
pointDocument.poiIconColor = "blue";
695697
pointDocument.poiIcon = "icon-tint";
696698
pointDocument.poiCategory = "Water";

0 commit comments

Comments
 (0)