Skip to content

Commit

Permalink
Fix duplicate places (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM authored Feb 7, 2025
1 parent 31a8a1c commit c82e72b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ private boolean processOtherSourceFeature(SourceFeature feature, FeatureCollecto

setIconColorCategory(pointDocument, feature);

if (pointDocument.poiIcon == "icon-search" || (pointDocument.poiIcon == "icon-home" && !isInterestingPoint(pointDocument))) {
if (pointDocument.poiIcon == "icon-search" ||
(pointDocument.poiIcon == "icon-home" && (!isInterestingPoint(pointDocument) || !feature.isPoint()))) {
return false;
}

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

if ("reservoir".equals(feature.getString("water")) ||
"pond".equals(feature.getString("water")) ||
"lake".equals(feature.getString("water"))) {
"lake".equals(feature.getString("water")) ||
"stream_pool".equals(feature.getString("water"))) {
pointDocument.poiIconColor = "blue";
pointDocument.poiIcon = "icon-tint";
pointDocument.poiCategory = "Water";
Expand Down

0 comments on commit c82e72b

Please sign in to comment.