code: function getName(properties) {
  
    // consider all official languages + english
    let langs = getLanguages(properties);
    if (!langs.includes('eng')) { langs.push('eng'); }
  
    // find the most relevant label
    let labelFields = langs.map(l => `label:${l}_x_preferred_longname`);
    labelFields = labelFields.concat(langs.map(l => `label:${l}_x_preferred`));
    let labels = concatArrayFields(properties, labelFields);
    if( labels.length ){ return labels[0]; }
  
    // fall back to the deprecated 'wof:label' property
    if (properties.hasOwnProperty('wof:label')) {
      return properties['wof:label'];
    }
    // use the 'wof:name' property
    return properties['wof:name'];
  }
docs: note: 'wof:label' has been officially deprecated see: https://github.com/whosonfirst-data/whosonfirst-data/issues/1540#issuecomment-481824475 see: https://github.com/whosonfirst-data/whosonfirst-data/issues/1540 see: https://github.com/whosonfirst-data/whosonfirst-data/pull/1548