It is a federal offense in the United States to trespass on an active railroad right-of-way. Geocaches should be located a minimum of 45 meters from any active rail line.