Community of Madrid interactive railway map. Mainline, regional and freight rail network — filterable by speed, electrification, track gauge and line usage.
Community of Madrid rail network drawn from data mapped by OpenStreetMap contributors, covering mainline railways, regional lines, commuter rail and freight corridors. Lines are colour-coded by rail type and filterable by maximum permitted speed, electrification system, track gauge and line usage. The map reveals the layered structure of the network: high-speed intercity spines, slower regional connectors, freight-only branches serving ports and industrial zones, and heritage lines preserved for tourism. Switch between filter modes to view the same railway infrastructure through a different lens — the same line that appears as a passenger main line in usage mode will show its permitted speed and electrification system in the other views.
Community of Madrid has 4,594 mapped railway segments including 52 tram lines, 1,206 metro segments, 177 light rail segments and 11 narrow gauge segments. It also includes 573 high-speed railway segments and 4,229 electrification-tagged segments.
Last update: 2026-06-04