San Francisco has the problem of inequality and an incompetent management, backed by people who wish the "homeless problem" just magically disappeared overnight.
The toilets and piles of human defecation rolling down the hill are a consequence of the above, and unsolvable until the above is addressed first. You can't borrow ideas from other cities around the world because those don't have rampant inequality.