Yosef Karo, Translation:Shulchan Aruch — Orach Chaim 373…
“ If they want to, they can make separate eruvs. However, if they are not opposite each other, with one being east and one west, they cannot make an eruv together. Similarly, if one is higher than the other it is not considered an opening. ”
