this marvel of modern engineering stretched to a distance of 1,379 kilometers between its endpoints and soared to elevations in excess of 3,500 meters above sea level to make it the highest elevated railroad in the known world .