Do states and or cities have to provide safe parking for people who live in their cars?

living in cars is actually illegal in most states i believe