Complex sentence: Shortly afterwards, a second railway opened to Sunbury with the junction of the two lines being at Footscray; by 1862 this railway had been extended to Sandhurst (Bendigo).
Split into simpler sentences: Shortly afterwards, Footscray became a junction station when a second railway, branching at Footscray, was opened to Sunbury. By 1862 this railway had been extended to Sandhurst (later renamed Bendigo).