How to know where a freight train is going