TakaI think what the author is trying to say is 'when you change trains',
Yes, that's most likely the intent.
Takabut is that 'when to' grammatically acceptable?
Not here. No.
when to clauses are indirect questions, hence, they function as noun phrases:
I didn't know when to change trains.
Be sure to tell him when to change trains.
They don't function as adverbs:
*You have to walk when to change trains.
*Be sure to read the posted signs when to change trains.
CJ