Railway lines and their immediate surroundings might have some 'protection' though I am prepared to be corrected about that. You might want to look into that.
Either way I wouldn't fancy getting a high speed train train running into the drone's rear or sides, then there is the question of whether or not it would go throught the trains windscreen.