The Syracuse and Chenango Valley Railroad was incorporated April 16, 1868, and had routes through the Chenango Valley from the city of Syracuse in Onondaga County to the village of Earlville in Madison County, a distance of 45 miles .