Or better yet, why not enact laws that say bars, clubs, gas stations, liquor stores, restaurants and cafés have to have free toilets? Give them some compensation, e.g. government pays for putting in or upgrading the bathroom and the restaurant just has to keep it clean and open. It solves most of the problems with public toilets out on the street, such as them being nasty and occupied by homeless people, because the owner of the establishment wants to keep it nice and clean.