People think its the homeless pooping on the streets of San Francisco but I was an employed software engineer making 6+ figures and pooped on the street one time since I could find a restroom.
One of the Boulder Colorado Starbucks has a biohazard needle disposal box. Either that's for people with diabetes or there a high population of IV drug users.
I do remember if you were on the west side the Santa Monica boardwalk and the beaches all having public restrooms which was a lifesaver numerous times for me!
But that was around 2015ish not sure how it is now.