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,596 mapped railway segments including 50 tram lines, 1,204 metro segments, 177 light rail segments and 11 narrow gauge segments..
Data: OpenStreetMap contributors
Last update: 2026-04-17