---Not a teacher, just a English learner---
In my opinion, "for" is more likely to indicate that you thanks for somthing that someone do for you whereas "to" indicate that maybe the one you want to thank actually do nothing. For instance, you are in a trouble, and they do not help you to resolve the problem and maybe they just call you to show their caring.
In my opinion, "for" is more likely to indicate that the direction you want to go while "to" indicate the destination you want to go.#1 You can understand that they may arrive a place close to New York#2 They have been to New York.
Maybe my understanding is wrong, I hope I would not misguide you, any others comments?
Student or Learner