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) {
'<a href="' + sURL + '">' + sTitleEscaped + '</a>'
);
},
+ formatPlaceType: function (aPlace) {
+ var sOut = aPlace.class + ':' + aPlace.type;
+ if (aPlace.type && aPlace.type === 'administrative' && aPlace.place_type) {
+ sOut = sOut + ' (' + aPlace.place_type + ')';
+ }
+ return new Handlebars.SafeString(sOut);
+ },
coverageType: function (aPlace) {
return (aPlace.isarea ? 'Polygon' : 'Point');
},