Zillow determined that homeowners realized greater gains when they were in close proximity to Trader Joe’s and Whole Foods, the national grocery store chains.