A man was taken to hospital after reportedly falling from a railway bridge.