What is the difference between のに and には?


I came accross :

> 行くのに１時間かかる。
>
> 行くには１時間かかる。

And someone told me I could say :

> 行くのには１時間かかる。

So I would like to know the difference between all these in details please,
thanks




These are the same except for the contrasting nuance added by「は」

>   * 行くのに1時間かかる
>   * **行く** のには1時間かかる （ **帰る** のには10分ですけど）  
>  _Going_ there takes an hour. (But _coming back_ takes 10 minutes)
>

This one is sort of a "set phrase" where the は is playing more of a topic-
identifying role rather than a contrasting one.

>   * **行くには** 1時間かかる  
>  It takes an hour **to get there**
>

It seemed natural for me to switch up the word order in the English sentences
there between using 行くのに and 行くには. Perhaps there is a shift in focus as well.




These are the same except for the contrasting nuance added by「は」

>   * 行くのに1時間かかる
>   * **行く** のには1時間かかる （ **帰る** のには10分ですけど）  
>  _Going_ there takes an hour. (But _coming back_ takes 10 minutes)
>

This one is sort of a "set phrase" where the は is playing more of a topic-
identifying role rather than a contrasting one.

>   * **行くには** 1時間かかる  
>  It takes an hour **to get there**
>

It seemed natural for me to switch up the word order in the English sentences
there between using 行くのに and 行くには. Perhaps there is a shift in focus as well.

