に泊まってるんだ

is staying at

→ に
phrase Rare #30,367
is staying at The subject is understood from context. 泊まってる is a conversational contraction of 泊まっている, and んだ adds an explanatory tone.
JA: 駅の近くのホテルに泊まってるんだ。
EN: I'm staying at a hotel near the station.

今週、僕のおじさんが家に泊まってるんだ。

My uncle is staying at our house this week.

あのホテルに泊まってるんだ。

I'm staying at that hotel.

ヒルトンホテルに泊まってるんだ。

I'm staying at the Hilton Hotel.

友達の家に泊まってるんだ。

I'm staying at a friend's house.