In 1851 , New York and Erie Railroad completed their line between Hornell and Dunkirk , New York via Piermont and Salamanca .
The New York and Erie Railroad completed their route between Piermont and Dunkirk in 1851 , New York via Hornell and Salamanca .