Switching and terminal railroad