Stricter filtering of train directions