Two sleeping giants who stood idly alongside the railway line have been granted historic recognition.