がけに

JLPT Level: N2
Meanings

On the way to

As you go

while going toward

Usage

V-るがけに

Nのがけに

Nへ向かうがけに

Explanation
がけに is used to describe something that happens or is noticed concurrently as you go toward a destination. It frames the following event or condition as taking place during the act of going to a place. It often adds a sense of circumstance or background for the main clause, and can carry a gentle or literary nuance. It is commonly found in written narration or more formal speech. Note that the pattern is attached to the destination-related action or noun and is not used with habitual or generic statements.
東京へ向かうがけに、雨が降り始めた。
とうきょうへむかうがけに、あめがふりはじめた。

As I headed toward Tokyo, it started to rain.

山を下るがけには、風が強く感じられた。
やまをくだるがけには、かぜがつよくかんじられた。

On the way down from the mountain, the wind felt strong.