Schedule every human to a residential home that is near work
Assuming you could allocate who lives where, you could allocate everybody to a home that is within 10 minutes (walking or driving) of their office.
You could pick a number of friends and you will be positioned so you are nearby your friends too.
Centrally managed residences. A formula calculates how much you pay for your residential home that is fair. (Bigger house, pay more)