On the way; en route — in the course of going somewhere (can be used adverbially).
帰りの途中でスーパーに寄った。
I stopped by the supermarket on the way home.
出張の途中、急に具合が悪くなった。
On the way to the business trip, I suddenly felt ill.
東京へ行く途中で富士山が見えた。
On the way to Tokyo, I could see Mt. Fuji.
In the middle of; midway — an intermediate state while something is in progress.
会議の途中で電話がかかってきた。
A phone call came in during the meeting.
作業は途中だが、今日はここまでにしよう。
The work is halfway done, but let's stop here for today.
旅行の途中で雨に降られた。
It rained while we were traveling.