]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/ClassTypes.php
fix admin levels for Norway and Sweden
[nominatim.git] / lib / ClassTypes.php
index 971f5b93147a5fc35f753d8fb8c9985096c2f19e..5a69d1ded8e9db631108ab9e09b9072d678d4d6a 100644 (file)
@@ -236,6 +236,20 @@ function getIcon($aPlace)
     return $aIcons[$sClassPlace] ?? null;
 }
 
+/**
+ * Get an icon for the given object with its full URL.
+ */
+function getIconFile($aPlace)
+{
+    $sIcon = getIcon($aPlace);
+
+    if (!isset($sIcon)) {
+        return null;
+    }
+
+    return CONST_Website_BaseURL.'images/mapicons/'.$sIcon.'.p.20.png';
+}
+
 /**
  * Return a class importance value for the given place.
  *