]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
move data-sources/ directory in new git repos
[nominatim.git] / lib / Geocode.php
index 253b9798950d2cda202c86fdda1636a28aca049c..0c93e0a96e429945d4a795fe32179fcc573f0544 100644 (file)
@@ -903,9 +903,9 @@ class Geocode
             }
 
             // Is there an icon set for this type of result?
-            $sIcon = ClassTypes\getIcon($aResult);
+            $sIcon = ClassTypes\getIconFile($aResult);
             if (isset($sIcon)) {
-                $aResult['icon'] = CONST_Website_BaseURL.'images/mapicons/'.$sIcon.'.p.20.png';
+                $aResult['icon'] = $sIcon;
             }
 
             $sLabel = ClassTypes\getLabel($aResult);