Arduino Train: How to Program "Stop Locations?"

You could isolate a very short section of rail. The metal wheels of the rolling stock would short this out to the adjoining sections when passing over it.

Or depending on aesthetics, an LDR mounted between the rails. When rolling stock passes over it it will go dark...