Even I, a non-homeless tech worker, have been forced to pee in the bushes next to a sidewalk in SF, because I was refused restroom access by 5 businesses in a row and I was already getting heart palpitations trying to hold it in.
I have never been refused restroom access (and there was almost always a public one within 100m at all times) in most modern Asian cities. Or even south bay (which is basically Asia), people are usually nice here about letting you use restrooms.