There have been a handful of court cases in California centering on where homeless slept:
2009: The American Civil Liberties Union filed a lawsuit against Laguna Beach for treating disabled homeless people like criminals and ticketing them for illegal lodging in public places.
2008: In Modesto, four men were acquitted by a jury in less than an hour after they were cited and charged with illegal lodging along Dry Creek near the La Loma neighborhood.
2004: Nine homeless people who had been cited for illegally sleeping in a public place filed a class-action lawsuit in federal court in San Diego. In February 2007, the city of San Diego settled the lawsuit, allowing anyone without a place to sleep permission to do so on public property between 9 p.m. and 5:30 a.m.
Sources: The Modesto Bee archives; Lexis-Nexis; National Law Center on Homelessness & Poverty and The National Coalition for the Homeless