This paper introduces a methodology for detecting and classifying railway infrastructure elements using ground-penetrating radar (GPR). Seven trips, covering
$57.4\,$km across a German track network were recorded. The network includes ballasted tracks, switches, bridges with dominant metal elements, and overpasses. GPR data from a multi-channel sensor array is transformed through a preprocessing pipeline to generate spatial B-scans. Statistical and structural features, including energy, depth, and skewness, are extracted via an overlapping sliding window. The detection algorithm operates as a streaming process, combining correlation-based pattern matching with feature-based thresholds in a state-machine architecture. The evaluation results demonstrate overall good performance for infrastructure detection and classification (
$98$–
$100\%$), with only minor misclassifications occurring for switch orientation estimation in scenarios involving closely spaced or physically interconnected switches (
$82$–
$100\%$).