Since the railroad's docks had been completed by this time and rail had been laid 8 miles up to Gatún on the Chagres River, it was possible to unload the ships' cargoes of emigrants and their luggage and transport them by rail, using flatcars and gondolas, for at least the first part of their journey up the Chagres River on their way to Panama City.