Well ... you are essentially jailing the homeless for being homeless when you jail them for unlawfully sleeping in cars/under bridges/in parks. Sleeping is necessary but if you have no house/shelter to sleep in, you are committing a crime.
And there is the rub. Can you continue to run the risk of health and public safety issues with squatters blocking streets, littering the streets, environment and waterways, associated criminal activity (drugs, alcohol, sexual assaults, etc.), and a host of other issues related both to quality of life and safety. Today, we give the homeless
carte blanche in most jurisdictions in CA to the point that businesses and residents suffer. And with the Boise decision, it has confirmed that we must simply allow homeless encampments to fester along the public throughfares to the point that in many jurisdictions there is a legitimate health concern as well as safety - both for the general public and the homeless as well. 20 odd years ago, there was, in effect, an "out of sight, out of mind" approach to much of the homeless. As long as they did not camp out (or pass out) at our feet, we would give them a pass. But, when they started camping on the streets, blocking doors to businesses, harassing passerby on the sidewalk, defecating in public, and other offenses, then enforcement was necessary. Today, nope! Especially after Boise. I don't know if you've been to any large cities in CA recently, but ... OMG! With a few exceptions, most of them are ... well, disgusting. My favorite parks in several cities I cannot even go to anymore, and I sure as heck wouldn't bring my children to if they were little.
Again, I don't know what THE answer is, but allowing homelessness to gather and fester on the streets is NOT it. And trying to shove them into four walls is also NOT it. There are some local solutions for those who want to get off the streets which includes temporary housing, and some of these are a step in the right direction ... provided they continue to hold their clients' feet to the fire. But, a majority of the long term homeless population is simply not willing, or incapable of, transitioning off the streets. THOSE are the folks that are most often the problem.