Is anyone aware of a rail map of Spain that shows Cercanías/Rodalies services on a line by line basis at a country level?

There is this nice map on Wikimedia by Maximilian Dörrbecker that highlights the areas with Cercanías/Rodalies, but it would be nice if in place of the highlighted areas, the Cercanías/Rodalies lines were shown. I am aware it is a bit of a niche request.

(I know you can view the individual Cercanías/Rodalies maps on the Renfe website)

@squawkbox did I send you down this rabbit hole yesterday? 😅
@james You did. It was a nice escape from dissertation feedback and admin.

@squawkbox
Talking about rabbit holes...

This made me wonder if it would be possible to construct such a map using pure #OpenStreetMap data.

In my first attempt I found some highly implausible "Cercanías Asturias" routes through empty parts of Extremadura and Almería.

I eventually tracked that down to the ID editor prompting mappers to assign all train routes in Spain to the first Spanish network in alphabetical order.

/ctd
@james

@squawkbox
So having confirmed that there was no arcane rail fan lore behind the mysterious tags, I removed them.

And asked a question on the OSM forum about fixing the dubious suggestions.

And added some comments to a related Github issue.

Now... what did I set out to do again?

Oh yes, I think creating a map of all Cercanías networks in Spain might now be possible after those fixes. But I have to do things in the real world now...
@james

@alan @james Ooh this is interesting. My knowledge of OSM is good enough to edit maps or map things via StreetComplete, but extraction is a bit beyond me. I will have a look (when I have a bit of spare time), even if the data is incomplete/slightly wrong, it would be nice for me to visualise it. My alternative plan was to manually map by tracing the routes from the Renfe PDF 'maps' on BRouter and displaying them via umap!

@squawkbox @james

Here's a first attempt using Overpass Turbo:
https://overpass-turbo.eu/s/1Yfn

I included everything with "Cercan" or "Rodal" in the network tag. This won't pick up FGC or Euskotren routes.

The old FEVE metric gauge lines are tricky - Renfe hasn't always been consistent about what gets the "Cercanías" label, and OSM tagging is a bit unpredictable. I can see that some lines around Santander and Leon are missing. I've used a different colour where tagging suggest a narrow gauge line.

overpass turbo

A web based data mining tool for OpenStreetMap which runs any kind of Overpass API query and shows the results on an interactive map.