Railroad rights-of-way are private property. Trespassing on railroad property, including trestles and bridges, is a misdemeanor. You must have written permission of the railroad company to be exempt from railway trespass.