I hunted groundhogs and small game along railroad tracks when I was in high school. I walked on the tracks and out of town and hunted for a couple of miles. One side of the tracks going out and the other side coming back. Can't do it today, the railroad companies are too worried about liability from both people getting injured by trains and people doing damage to railroad equipment that could cause a derailment.