let country = full["country"]; let city = full["city"]; var uiText = '
'; if(country !== null) { uiText += country.countryName+"
"; uiText += 'City: '+city; } uiText += '
'; return uiText;