I came home on the street that goes by McDonald's.
I took the road that runs by McDonald's on the way home.
1) I came home on the street that goes by McDonald's.
「マクドナルドを通る道から帰ってきた。」
the street that goes by McDonald's で「マクドナルドを通る道」
2) I took the road that runs by McDonald's on the way home.
「帰りはマクドナルドを通る道を使って帰ってきた。」
the road that runs by McDonald's で「マクドナルドを通る道」
on the way home で「帰り道に」
ご参考になれば幸いです!