I have a train route that essentially can be simplified to a dog bone. The station stop is located on the "straight away". I'd like the 253 to only stop "east bound" trains and not "west bound" trains. I envision sensing the direction of the train based upon one of the O22 switch positions.
Here is a diagram for starters: