The London , Midland and Scottish Railway and the London and North Eastern Railway both developed a system of identifying carriages by means of alphabetic codes . The London , Midland and Scottish Railway and the London and North Eastern Railway both developed a system of identifying railway carriages by means of alphabetic codes .