Tall apartment buildings in downtown Freemont would prevent people from having to drive out to LivermoreConditions vary all over the nation.
I was a long time Broker selling Real Estate for clients and know about Northern CA. And some of this applies also to where I now live in Idaho.
Cars and fuel were for many years sold at low prices. I used to work for 2 gas stations who had promotions to get buyers to buy gas there. Standard Oil gave me $1,000 for lucky license and I found out when a woman in a town close to me wanted to sell me information that I had the money. A standard oil station was close to her office so I drove there immediately and filled out the form awarding me $1,000. So at one point Gas stations were sort of desperate to sell gasoline. The woman was annoyed I did not use her service.
As cities expanded, they also planned the city. Before it was hit and miss. Fremont, CA where I was the Broker of Real Estate followed a very thoughtful managed program and won awards for planning nationally. They allocated farm land as industrial and other uses such as commercial and housing. When the homes were built, Fremont had no more land to offer to contractors. So the workers were forced to drive miles away to own a home. As those prices went up, the buyers were forced more and more distant to live economically and also drive to work. It is a spiral.
I live here in Idaho where this city has essentially copied the formula used by Fremont,. Ca in the 1950s. But these homes are around 20 years in large parts.