Network Rail completed a trial of real-time train location technology on the Heart of Wales line, aiming to improve operational safety at rural level crossings.