Offices that are walking distance are a whole other story.
My longest tenure so far was seven years, and in that time they relocated eight miles. Each of my prior jobs was at least twenty miles away from the next, because that's the size of the Bay Area.