I use a bridge rectifier on a DC relay. Then add a 500uf or a 1000uf
on the DC side. The 1Kuf gives me about a 1 second delay after the
train passes. I like the effect. This configuration also prevents
relay chatter.
This is a kind of "roll your own thread" on isolated rail triggering.