I wonder if it would make sense in some cities to set-up "internet café" or capsule hotel-like accommodations[1]. Dense urban areas in other countries have these "overflow" spaces which diverged somewhat from their original design have come to serve either laborers, workers from other cities as well as people stranded by train schedules.
I'm picturing something like an "Uber stop" somewhat similar to a truck-stop... combine a gas-station and restaurant with some of those Japanese "capsule hotel" sleeping pods[1], add wifi and maybe even a few coin-op washing machines / dryers.
Cheap short-term (nightly to weekly) housing used to be all over the United States in the form of dormitories (YMCA was huge), SROs (single room occupancy), cage hotels, flophouses, and boarding houses. Because of zoning and building code changes this kind of housing essentially stopped being built after WWII. https://en.wikipedia.org/wiki/Flophouse#Cage_hotels_in_the_U...
It probably wouldn't hurt to have those places as a fallback in case someone really needs them. At the same time, it seems like a bad idea to expect people to need them on a regular basis.
I think it would make more sense for cities to mandate that workers be paid a livable wage for the area, rather than setting up and endorsing underclass-level living arrangements.
In the Case of some of these Uber drivers, they are kind of arbitraging costs. They live in Sacto but work in SF. But yeah, I'd support a tiered living wage (more for over 25yo, less for younger adults to give them a way to get into the labor force).
[1]https://en.wikipedia.org/wiki/Net_cafe_refugee