{"schema_version":"1.0","country":"es","country_name":"Spain","topic":"railways","question":"Where can I get the railway network (geometry) of Spain, with line type, electrification, infrastructure manager and traffic?","territory":"es","territory_level":"country","parent_url":null,"published_on":"2026-11-19","research_reviewed_on":"2026-11-16","access_checked_on":null,"answer":{"official_data":"partial","non_official_data":"partial","summary":"Geometry with electrification, gauge and track count for the whole network (Adif plus FGC, Euskotren, SFM, metro, tram) is in IGN's INSPIRE WFS (60,018 links, CC BY 4.0). Line type is partial (train/metro/tram on 497 lines). Manager is only an administration level there; ERA RINF gives a manager code for 2,520 Adif sections. Traffic exists only as train-km per axis and top-10 lines (CNMC PDF). Adif's own WFS is blocked to automated clients.","main_caveats":["IGN attributes are separate features linked to links; many links lack electrification (38,120) or track count (37,336) of 60,018. GML only.","ERA RINF geometry is a 2-point chord per section and only manager code 0071; the code was not confirmed as Adif by any page.","Traffic is per axis and top-10 lines only, RFIG only (no FGC, Euskotren, SFM, metro or tram).","ideadif.adif.es, www.adif.es and www.transportes.gob.es answered 403 to automated clients; Adif's own WFS and network statement were not read.","Network lengths differ: Adif 15,654.1 km (OFE 2024), RFIG 15,678 km (CNMC 2025), RINF sections sum 15,537 km."],"confidence":"medium","confidence_reason":"Geometry, electrification and RINF were tested live; traffic and manager rely on PDFs; Adif's primary services were blocked and Catalan/Basque catalogues not fully checked.","attributes":[{"attribute":"route_geometry","covered":"yes","source_ids":["s001","s003"],"note":"IGN WFS: 60,018 polylines, all managers. RINF has only 2-point chords per section.","gap":null,"gap_note":null},{"attribute":"line_type","covered":"partial","source_ids":["s001","s005","s007"],"note":"RailwayType train 378, metro 65, tramway 45 on 497 lines; BOE blocks; Valencia tipo_linea. No Adif service-class type.","gap":"not_checked","gap_note":"Adif Declaración sobre la Red (line classification for fees) lives on adif.es, which returned 403; not opened."},{"attribute":"electrification","covered":"yes","source_ids":["s001","s003","s005"],"note":"IGN boolean on 38,120 links; RINF voltage per track (3 kV DC, 25 kV AC, 1.5 kV DC); BOE by line.","gap":null,"gap_note":null},{"attribute":"infrastructure_manager","covered":"partial","source_ids":["s003","s006","s007"],"note":"RINF: one manager code (0071) for Spain; OFE names Adif, ETS, FGC, SFM; Valencia titularidad. IGN gives owner level only.","gap":"not_checked","gap_note":"Per-segment manager for FGC, Euskotren and SFM links not found; Catalan and Basque IDE catalogues not rendered by my tools, ICGC not opened."},{"attribute":"traffic","covered":"partial","source_ids":["s004","s006"],"note":"CNMC train-km per axis (12) and top-10 lines; OFE density trains/km/day. No per-segment dataset seen.","gap":"not_checked","gap_note":"Line-level occupancy in Adif's Declaración sobre la Red (adif.es 403) not read; CNMC Data API not explored."}]},"sources":[{"source_id":"s001","name":"Redes de transporte de España (IGR-RT), INSPIRE download service, rail layers","publisher":"Instituto Geográfico Nacional (IGN-CNIG), Sistema Cartográfico Nacional","official":true,"landing_url":"https://datos.gob.es/es/catalogo/e00125901-transporte.rdf","data_url":"https://servicios.idee.es/wfs-inspire/transportes?service=WFS&request=GetCapabilities","access":"api","format":"OGC WFS 2.0.0, GML 3.2 only (JSON refused); Shapefile also listed by the catalogue in CNIG Centro de Descargas (not opened)","license":"CC BY 4.0 (scne.es)","language":"es","has_coordinates":true,"location_precision":"exact","summary":"Redes de transporte de España (IGR-RT), INSPIRE download service, rail layers","coverage_note":"Spain (national, 60,018 RailwayLink polylines; includes regional and urban rail networks)","data_date":"No single dataset date; per-object version stamps (links 2021-05-18, RailwayLine 2024-09-25, OwnerAuthority citation revision 2026-01-20); catalogue record modified 2023-04-10.","caveats":["Consult the main caveats and the complete reading traps and access evidence in the detail."],"test":{"tested_on":"2026-11-16","method":"api_query","http_status":200,"problems":["JSON output refused (400)","National Centro de Descargas (centrodedescargas.cnig.es) returned an empty reply to curl; WebFetch showed only the menu"]},"example":{"example_request":"curl -sL \"https://servicios.idee.es/wfs-inspire/transportes?service=WFS&version=2.0.0&request=GetFeature&typeNames=tn-ra:RailwayLink&resultType=hits\"  and  curl -sL \"https://servicios.idee.es/wfs-inspire/transportes?service=WFS&version=2.0.0&request=GetFeature&typeNames=tn-ra:RailwayLink&count=500&startIndex=30000\"","example_result":"hits: numberMatched=\"60018\". Sample record: gml:id TN-RA_RAILWAYLINK_FFCC_TR30000000827, net:fictitious=true, gml:LineString posList \"38.390668 -0.515177 38.390787 -0.515290 ...\". Electrification record: TN-RA_RAILWAYELECTRIFICATION_ELEC_FC460000004420, tn-ra:electrified=true."},"members_summary":null},{"source_id":"s002","name":"Red de Transporte Ferroviario de Adif (IDEADIF WFS and WMS, INSPIRE)","publisher":"Adif (Administrador de Infraestructuras Ferroviarias)","official":true,"landing_url":"https://datos.gob.es/es/catalogo/e0dat0002-red-de-transporte-ferroviario-de-adif1","data_url":"https://ideadif.adif.es/services/wfs?REQUEST=GetCapabilities&SERVICE=WFS&VERSION=2.0.0","access":"api","format":"OGC WFS 1.1.0 and 2.0.0, GML 3.2; WMS","license":"CC BY 4.0 (datos.gob.es); use allowed crediting '© Administrador de infraestructuras ferroviarias' (idee.es record)","language":"es","has_coordinates":true,"location_precision":"exact","summary":"Red de Transporte Ferroviario de Adif (IDEADIF WFS and WMS, INSPIRE)","coverage_note":"Mainland Spain, Adif network (bbox -9.87..3.59, 36.01..43.84)","data_date":"2024-07 (revised 2024-07-01)","caveats":["Consult the main caveats and the complete reading traps and access evidence in the detail."],"test":{"tested_on":"2026-11-16","method":"blocked","http_status":403,"problems":["Akamai 'Access Denied' (403) to automated clients on ideadif.adif.es, www.adif.es and the Adif network-statement page","No Wayback copy of the WFS"]},"example":{"example_request":"curl -sL \"https://ideadif.adif.es/services/wfs?REQUEST=GetCapabilities&SERVICE=WFS&VERSION=2.0.0\"","example_result":"HTTP 403, text/html 390 bytes: '<TITLE>Access Denied</TITLE> You don't have permission to access ...'. No data obtained."},"members_summary":null},{"source_id":"s003","name":"ERA RINF knowledge graph (Register of Infrastructure), Spanish sections of line","publisher":"European Union Agency for Railways (ERA)","official":true,"landing_url":"https://www.era.europa.eu/domains/registers/rinf_en","data_url":"https://graph.data.era.europa.eu/repositories/rinf-plus","access":"api","format":"SPARQL (JSON, XML); WKT geometries","license":"unknown (ERA page links RINF Terms of Use, not read)","language":"en","has_coordinates":true,"location_precision":"exact","summary":"ERA RINF knowledge graph (Register of Infrastructure), Spanish sections of line","coverage_note":"Spain: 2,520 SectionOfLine, one infrastructure-manager role (code 0071)","data_date":null,"caveats":["Consult the main caveats and the complete reading traps and access evidence in the detail."],"test":{"tested_on":"2026-11-16","method":"api_query","http_status":200,"problems":[]},"example":{"example_request":"curl -sG --data-urlencode \"query@rq.txt\" -H \"Accept: application/sparql-results+json\" https://graph.data.era.europa.eu/repositories/rinf-plus   with rq.txt =\nPREFIX era: <http://data.europa.eu/949/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX geo: <http://www.opengis.net/ont/geosparql#>\nSELECT ?label ?im ?len ?cls ?wkt WHERE { ?s a era:SectionOfLine ; rdfs:label ?label ; era:inCountry <http://publications.europa.eu/resource/authority/country/ESP> ; era:infrastructureManager ?im ; era:lengthOfSectionOfLine ?len ; era:hasPart ?t ; era:netReference/geo:hasGeometry/geo:asWKT ?wkt . ?t era:contactLineSystem ?cls } LIMIT 2","example_result":"label 'Section of Line BIF. CORESES - ZAMORA', im .../organisationRole/0071_IM, len 9.243, cls .../contactLineSystem/3ef9cb304f, wkt 'LINESTRING (-5.6318400 41.5329200, -5.7397000 41.5159000)'. Count: era:inCountry ESP gives 2520 sections."},"members_summary":null}],"other_sources_count":5,"if_unstructured":{"summary":null},"local_terms":[{"term":"red ferroviaria de interés general (RFIG)","language":"es","meaning":"state-level rail network managed by Adif and Adif AV"},{"term":"declaración sobre la red","language":"es","meaning":"network statement published by the infrastructure manager"},{"term":"tren.km / trenes-km","language":"es","meaning":"train-kilometres, the traffic unit"},{"term":"ancho ibérico / métrico / UIC","language":"es","meaning":"gauges 1,668 mm / 1,000 mm / 1,435 mm"},{"term":"vía única / doble","language":"es","meaning":"single / double track"},{"term":"eje (ferroviario)","language":"es","meaning":"Adif corridor code 01..16 grouping lines"},{"term":"tramificación común","language":"es","meaning":"Adif common sectioning used for its INSPIRE dataset"},{"term":"xarxa ferroviària","language":"ca","meaning":"rail network (Catalan, Valencian, Balearic catalogues)"}],"provenance":{"pass_count":1,"models":["Claude Sonnet 5.5 (High)"],"minutes_estimate":60,"pages_opened":33,"passes":[{"pass":1,"date":"2026-11-16","model":"Claude Sonnet 5.5 (High)"}],"note":"Minutes are researcher estimates. Counts describe documented passes, not publication approval. Missing history or effort is not reconstructed."},"card_url":"https://georutter.org/v1/es/railways.json","detail_url":"https://georutter.org/v1/es/railways/detail.json","html_url":"https://georutter.org/es/railways/","country_url":"https://georutter.org/v1/countries/es.json"}
