Like は and も, the possessive particle の can also append itself to other particles to help modify nouns.

友達ともだちへ 手紙てがみを おくります。
To send a letter to a friend.
友達ともだちの 手紙てがみ
A friend’s letter.
友達ともだちへの 手紙てがみ
A letter to a friend.

Note that にの is not a valid combination. We must use の if we want to combine the directional particle with へ!

友達ともだちから 手紙てがみを もらいます。
To receive a letter from a friend.
友達ともだちからの 手紙てがみ
A letter from a friend.
先生せんせいと 会話かいわを します。
To have a conversation with a teacher.
先生せんせいとの 会話かいわ
A conversation with a teacher.
電車でんしゃで 通勤つうきんします。
To commute by train.
電車でんしゃでの 通勤つうきん
A commute by train.
東京とうきょうから 京都きょうとまでの 距離きょりは およそ380キロメートルです。
The distance from Tokyo to Kyoto is about 380 kilometres.

In writing you may occasionally see へと used in combination but this does not change the meaning or grammatical usage. This will not come on the N5 or N4, but you may see it later.

日本にほんは、20世紀にじゅうせいきに 産業社会さんぎょうしゃかいから 技術社会ぎじゅつしゃかいへと かわりました。
During the 20th century Japan moved from an industrial society to a technological one.
You May Also Like

The Auxiliary Verb

The usage のだ and んだ can be for: Expressing a reason or explanation Emphasis To express what should…

Expressing a Way or Method: ~方

To recap, the verb stem is the polite form of the verb with the ます removed. Verb Dictionary Polite…

Too Much: すぎる

To say something is “too much” or “too small” or that we drank “too much” and so forth,…

The Directional Particle (へ)

The directional particle へ could be said to be a more literary version of the target particle に…