Yass Junction was the nearest railway station on the Sydney Melbourne railway to serve the national capital at Canberra . Yass had the nearest railway station on the Sydney Melbourne railway to serve the national capital at Canberra .