Any person may apply for a writ of mandate to compel compliance by any public entity that has not complied with the requirements of this article and Article 3 (commencing with Section 118920) for the designating or posting of nonsmoking areas or areas where the smoking of tobacco is prohibited. If judgment is given for the applicant, he or she may recover all reasonable costs of the suit, including reasonable attorney fees, reasonableness to be determined by the court.