Rail transportation plays a significant role in connecting communities and facilitating the movement of people and…