}
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) {
},
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';