に行くのに

in order to go to

→ に
phrase Rare #20,439
in order to go to Used to express the purpose of going somewhere, often followed by what is needed, how long it takes, or a difficulty. Here, の nominalizes 行く and に marks the purpose. Do not confuse this usage with のに meaning “although,” as in 行かせたのに.
JA: 駅に行くのにバスを使います。
EN: I take the bus to get to the station.

中心部にあるので商店オフィスに行くのに便利です

It’s centrally located, so it’s convenient for getting to shops and offices.

に行くのにタクシーが必要だった

I needed a taxi to get to the station.

飛行機で沖縄に行くのにどれくらい時間がかかる

How long does it take to get to Okinawa by plane?

ガルカ文化ホールに行くのに乗せてってくれない

Could you give me a ride to the Galka Cultural Hall?

— 動くな、死ね、甦れ! (1990)

ボストンに行くのに飛行機でどれくらい時間がかかりました

How long did it take you to fly to Boston?

東京に行くのにが一番便利行けます

What's the most convenient way to get to Tokyo?