に行くには

to go to …

→ に
phrase Uncommon #17,768
to go to … Used to frame going somewhere as the topic or condition, often in the sense of “to get to …” or “if you want to go to …”.
JA: 京都に行くには新幹線が便利です。
EN: The Shinkansen is convenient for getting to Kyoto.

ボストンに行くにはこのバスで良いんですか?

Is this the right bus to take to get to Boston?

アメリカに行くには大洋を横断しなければなりません。

To get to America, you have to cross the ocean.

ワイキキに行くには何番のバスに乗ればいいか教えてください。

Could you tell me which bus number I should take to get to Waikiki?

海に行くにはまだ寒すぎるよ。

It’s still too cold to go to the beach.

トムの家に行くには、朝早すぎると思うよ。

I think it’s too early in the morning to go to Tom’s house.

駅に行くにはどのバスに乗ればよいか教えて下さい。

Could you tell me which bus I should take to get to the station?

迷ったんだバッハに行くには?

I got lost—how do I get to Bach?

— シティ・オブ・ゴッド (2002)

海に行くにはまだ寒すぎる。

It’s still too cold to go to the beach.