]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - dist/handlebar_helpers.js
Merge pull request #10 from mtmail/skip-empty-values
[nominatim-ui.git] / dist / handlebar_helpers.js
index d96923f2cc2e8994657b66c7833c4d323561cdc5..de8778b4784d87e4f4713ac10cc59ff5e9836963 100644 (file)
@@ -14,15 +14,15 @@ function formatOSMType(sType, bExcludeExternal) {
 }
 
 Handlebars.registerHelper({
+  formatOSMType: function (sType, bExcludeExternal) {
+    return formatOSMType(sType, bExcludeExternal);
+  },
   shortOSMType: function (sType) {
     if (sType === 'node') return 'N';
     if (sType === 'way') return 'W';
     if (sType === 'relation') return 'R';
     return '';
   },
-  isaddresses_unused: function (aAddressLine) {
-    return ((aAddressLine.isaddress && aAddressLine.isaddress === 'f') ? 'notused' : '');
-  },
   // { osm_type: 'R', osm_id: 12345 }
   // <a href="https://www.openstreetmap.org/relation/12345">relation 12345</a
   osmLink: function (aPlace) {
@@ -134,7 +134,7 @@ Handlebars.registerHelper({
   },
   formatSearchRank: function (iRank) {
     // same as
-    // https://github.com/openstreetmap/Nominatim/blob/master/sql/functions.sql
+    // https://github.com/osm-search/Nominatim/blob/master/sql/functions.sql
     // get_searchrank_label()
 
     if (iRank < 2) return 'continent';