@@ -98,7 +98,7 @@ public List<OsmRelationInfo> preprocessOsmRelation(OsmElement.Relation relation)
9898 var pointDocument = new PointDocument ();
9999 setIconColorCategory (pointDocument , relation );
100100
101- if (!"icon-waterfall " .equals (pointDocument .poiIcon ) &&
101+ if (!"icon-river " .equals (pointDocument .poiIcon ) &&
102102 !"Bicycle" .equals (pointDocument .poiCategory ) &&
103103 !"Hiking" .equals (pointDocument .poiCategory )) {
104104 return null ;
@@ -293,7 +293,7 @@ private boolean processWaterwayFeature(SourceFeature feature, FeatureCollector f
293293 }
294294 for (var routeInfo : feature .relationInfo (RelationInfo .class )) {
295295 RelationInfo relation = routeInfo .relation ();
296- if (relation .pointDocument .poiIcon == "icon-waterfall " ) {
296+ if (relation .pointDocument .poiIcon == "icon-river " ) {
297297 // In case this waterway is part of a relation, we already processed it
298298 return true ;
299299 }
@@ -317,7 +317,7 @@ private boolean processWaterwayFeature(SourceFeature feature, FeatureCollector f
317317 var pointDocument = new PointDocument ();
318318 convertTagsToDocument (pointDocument , feature );
319319 pointDocument .poiCategory = "Water" ;
320- pointDocument .poiIcon = "icon-waterfall " ;
320+ pointDocument .poiIcon = "icon-river " ;
321321 pointDocument .poiIconColor = "blue" ;
322322 pointDocument .poiSource = "OSM" ;
323323 var lngLatPoint = GeoUtils .worldToLatLonCoords (point ).getCoordinate ();
@@ -389,7 +389,7 @@ private boolean processOtherSourceFeature(SourceFeature feature, FeatureCollecto
389389
390390 insertPointToElasticsearch (pointDocument , docId );
391391
392- if ((pointDocument .poiIcon == "icon-peak" || pointDocument .poiIcon == "icon-waterfall " ) && !isInterestingPoint (pointDocument )) {
392+ if ((pointDocument .poiIcon == "icon-peak" || pointDocument .poiIcon == "icon-river " ) && !isInterestingPoint (pointDocument )) {
393393 return true ;
394394 }
395395
@@ -713,13 +713,20 @@ private void setIconColorCategory(PointDocument pointDocument, WithTags feature)
713713 }
714714 }
715715
716- if ("waterfall" .equals (feature .getString ("waterway" )) || "waterway" . equals ( feature . getString ( "type" )) ) {
716+ if ("waterfall" .equals (feature .getString ("waterway" ))) {
717717 pointDocument .poiIconColor = "blue" ;
718718 pointDocument .poiIcon = "icon-waterfall" ;
719719 pointDocument .poiCategory = "Water" ;
720720 return ;
721721 }
722722
723+ if ("waterway" .equals (feature .getString ("type" ))) {
724+ pointDocument .poiIconColor = "blue" ;
725+ pointDocument .poiIcon = "icon-river" ;
726+ pointDocument .poiCategory = "Water" ;
727+ return ;
728+ }
729+
723730 if (feature .getString ("place" ) != null ) {
724731 pointDocument .poiIconColor = "black" ;
725732 pointDocument .poiIcon = "icon-home" ;
@@ -740,10 +747,13 @@ private void setIconColorCategory(PointDocument pointDocument, WithTags feature)
740747 pointDocument .poiCategory = "Camping" ;
741748 return ;
742749 case "attraction" :
743- case "artwork" :
744750 pointDocument .poiIconColor = "#ffb800" ;
745751 pointDocument .poiIcon = "icon-star" ;
746752 pointDocument .poiCategory = "Other" ;
753+ case "artwork" :
754+ pointDocument .poiIconColor = "#ffb800" ;
755+ pointDocument .poiIcon = "icon-artwork" ;
756+ pointDocument .poiCategory = "Other" ;
747757 return ;
748758 case "alpine_hut" :
749759 pointDocument .poiIconColor = "#734a08" ;
0 commit comments