{"schema_version":"1.0","country":"es","country_name":"Spain","topic":"roads","question":"Where can I get the road network (geometry) of Spain, with road category, owner and traffic volume (annual average daily 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":"No single national file has geometry, category, owner and AADT for all Spanish roads. The Ministry of Transport's HERMES ArcGIS REST service gives State-network (RCE) section lines with owner, road type and IMD (vehicles/day, 2020-2024 per section) as open API. IGN's IGR-RT covers all roads of every owner with category and owner but no traffic. IMD on regional roads is published region by region (Valencia, Catalonia, Navarre, Castilla y Leon tested).","main_caveats":["HERMES holds several years per section: filter Dato_hasta (epoch ms) to the newest, or you get duplicates (23,113 rows, 11,338 unique road+PK ranges). Row id 0 is empty. Valido_hasta is empty in all rows.","In HERMES layer 198 IMD_asc/IMD_desc are percentages of the total (they add to 100) although the data dictionary says vehicles/day; IMD_asc is null in 6,443 rows.","HERMES IMD lines cover the State network only (Titular=Estado in 23,046 of 23,112 rows); the station layers (195, 151) return HTTP 400 to every query tried.","IGR-RT is the only nationwide owner/category source but its download is a browser button (link '#'); curl got an empty reply from CNIG. Licence compatible with CC-BY 4.0. No traffic field.","Regional IMD sets differ: Catalonia and Navarre give points at stations, Castilla y Leon has no geometry, Valencia has lines (GML only). Years differ per region."],"confidence":"medium","confidence_reason":"HERMES and 4 regional sets were queried and counted; the IGR-RT owner/category files and 12 regions' IMD were not opened or downloaded; ministry site rejects automated clients.","attributes":[{"attribute":"route_geometry","covered":"yes","source_ids":["s001","s002"],"note":"IGR-RT: 9.9M road links via OGC API (3D lines, all owners incl. urban). HERMES: 1,602 RTIG section lines (29,238 km) and 23,112 IMD lines.","gap":null,"gap_note":null},{"attribute":"road_category","covered":"partial","source_ids":["s001","s002"],"note":"HERMES Tipo_de_via (4 values) for RTIG roads; IGR-RT API has only INSPIRE functionalclass/formofway; the clase/orden fields are in files I could not download.","gap":"not_checked","gap_note":"Open the national IGR-RT GeoPackage from CNIG (download button needs a browser) and list the rt_tramo_l fields clase, orden, titular."},{"attribute":"owner","covered":"partial","source_ids":["s001","s002","s003"],"note":"HERMES Titular (Estado plus a few regional owners) for RTIG roads; owner of every road is the titular field of IGR-RT files per its data model (files not downloaded).","gap":"not_checked","gap_note":"Same as above: titular values of the national IGR-RT file were not inspected; the API roadlink has no owner field."},{"attribute":"annual_average_daily_traffic","covered":"partial","source_ids":["s001","s003"],"note":"Coverage combines distinct components of the question; see the original detailed evidence and its geographic and technical limits.","gap":"not_checked","gap_note":"The original rows have different scopes. Their combination has not been established as complete; original rows are retained in internal curation."}]},"sources":[{"source_id":"s001","name":"HERMES - Red de Transporte de Interes General (ArcGIS REST): IMD per section, road type and owner of the State road network","publisher":"Ministerio de Transportes y Movilidad Sostenible (SG de Planificacion, Red Transeuropea y Logistica; data from DG de Carreteras)","official":true,"landing_url":"https://datos.gob.es/es/aplicaciones/hermes","data_url":"https://mapas.fomento.gob.es/arcgis/rest/services/Hermes/3__USO_DE_LA_RED/MapServer/198","access":"api","format":"ArcGIS REST MapServer 10.91 (f=json, f=geojson, f=pjson); layers: 3__USO_DE_LA_RED/198 IMD per section, 0__CARRETERAS/0 road type, HERMES_CARRETERAS/89 RCE catalogue","license":"unknown","language":"es","has_coordinates":true,"location_precision":"exact","summary":"HERMES - Red de Transporte de Interes General (ArcGIS REST): IMD per section, road type and owner of the State road network","coverage_note":"State road network (RCE) and other RTIG roads, peninsular Spain; bbox of IMD lines lon -8.78..3.17, lat 36.02..43.69 (no island lines)","data_date":"Calendar year of each row: Dato_hasta 2024-12-31 in 10,412 rows, 2021 in 10,724, 2023 in 1,024, 2022 in 568, 2020 in 384","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":["Station layers (195, 151) return HTTP 400 'Failed to execute query' on every query","Licence not stated in the REST metadata; the viewer's download button is said to show it"]},"example":{"example_request":"curl -sG \"https://mapas.fomento.gob.es/arcgis/rest/services/Hermes/3__USO_DE_LA_RED/MapServer/198/query\" --data-urlencode \"where=Carretera='A-1' AND Dato_hasta=DATE '2024-12-31'\" --data-urlencode \"outFields=Carretera,PK_inicio,PK_fin,IMD_total,Pesados,Titular,Dato_hasta\" --data-urlencode \"outSR=4326\" --data-urlencode \"resultRecordCount=2\" --data-urlencode \"f=geojson\"","example_result":"Feature LineString [[-3.6585589,40.5038107],[-3.6583294,40.5042158],...] properties {\"Carretera\":\"A-1\",\"PK_inicio\":12,\"PK_fin\":12.69,\"IMD_total\":141954,\"Pesados\":3.00660777,\"Titular\":\"Estado\",\"Dato_hasta\":1735603200000}. Count query where=Dato_hasta=DATE '2024-12-31' returned {\"count\":10412}; with IMD_total>=100000 returned 254."},"members_summary":null},{"source_id":"s002","name":"IGR-RT - Redes de Transporte de Espana: road network (carreteras, urban streets, tracks) with owner and category","publisher":"Instituto Geografico Nacional (IGN) / Centro Nacional de Informacion Geografica (CNIG)","official":true,"landing_url":"https://centrodedescargas.cnig.es/CentroDescargas/redes-transporte","data_url":"https://api-features.idee.es/collections/roadlink","access":"api","format":"OGC API Features (GeoJSON, 3D lines CRS84), INSPIRE WFS 2.0.0 and WMS; files: national GeoPackage/Shapefile (roads only) and 50 provincial files (GeoPackage, Shapefile)","license":"IGN use licence, 'compatible con CC-BY 4.0' (Orden FOM/2807/2015), attribution required","language":"es","has_coordinates":true,"location_precision":"exact","summary":"IGR-RT - Redes de Transporte de Espana: road network (carreteras, urban streets, tracks) with owner and category","coverage_note":"Spain (extent -19..5, 27..44), peninsula, Balearics, Canarias, Ceuta, Melilla","data_date":"Files dated 07/2026; model v1.9 dated 2026-01-01; API features carry fecha_alta per link","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":["CNIG centrodedescargas answers command-line clients with an empty reply (connection closed)","Download button on the file page links to '#'; no direct URL found","nco.ign.es transport MapServer answered 'No se puede acceder a ningun equipo del servidor' on 2026-11-16"]},"example":{"example_request":"curl -sL \"https://api-features.idee.es/collections/roadlink/items?f=json&limit=2\"  (count: curl -sL \"https://api-features.idee.es/collections/roadlink/items?f=json&limit=1&skipGeometry=true\")","example_result":"numberMatched 9900688. Feature id VIAL_TR100010000249, properties {\"functionalclass\":null,\"surfacecategory\":\"paved\",\"fecha_alta\":\"2023-09-15T00:00:00\",\"formofway_href\":\"http://inspire.ec.europa.eu/codelist/FormOfWayValue/singleCarriageway\",\"id_tramo\":100010000249,\"numberoflanes\":null,\"fictitious\":\"true\"}, geometry LineString [[-5.975928,40.260412,452.3],...]"},"members_summary":null},{"source_id":"s003","name":"Regional road traffic (IMD) datasets of autonomous communities and councils","publisher":"Autonomous communities (Generalitat Valenciana, Generalitat de Catalunya, Gobierno de Navarra, Junta de Castilla y Leon, Comunidad de Madrid, Xunta de Galicia...)","official":true,"landing_url":"https://datos.gob.es/es/catalogo/a10002983-intensidad-media-diaria-anual-imd-de-trafico-por-tramos-red-autonomica-de-carreteras-de-la-comunitat-valenciana-2009-2025","data_url":null,"access":"api","format":"WFS (GML/GPKG), Socrata JSON/CSV, Shapefile, CSV, PDF, depending on the region","license":"varies by region (Navarre CC BY 4.0; others not checked)","language":"es","has_coordinates":true,"location_precision":"exact","summary":"Regional road traffic (IMD) datasets of autonomous communities and councils","coverage_note":"Tested: Comunitat Valenciana, Catalunya, Navarra, Castilla y Leon (+ Madrid as PDF). Roads of that owner only","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":["Castilla-La Mancha xlsx links redirect to the portal home page (portal being rebuilt)","Valencia WFS refuses application/json output"]},"example":{"example_request":"curl -sL \"https://analisi.transparenciacatalunya.cat/resource/xsvx-ym46.json?$limit=2\"  |  curl -sL \"https://terramapas.icv.gva.es/0902_Aforos?request=GetFeature&service=WFS&version=2.0.0&typename=Aforos2024&count=1\"","example_result":"Catalonia: {\"any\":\"2018\",\"codi\":\"57043443\",\"carretera\":\"T-704\",\"pk_inici\":\"33.69\",\"pk_final\":\"36.948\",\"class_func\":\"C\",\"imd\":\"177\",\"pesants\":\"0.009\",\"latitud\":\"41.291298\",\"longitud\":\"1.002887\"}. Valencia: carretera CV-10, titular Gva, tipo_calzada Autovia, pk_inicio 0+000, pk_fin 1+650, imd 26072, vehiculo_pesados_zp 18, 4 line parts EPSG:25830."},"members_summary":{"total":null,"listed":7,"tested":6,"data_found":0,"scope_note":"Inherited members; data findings were not reclassified during this structural migration. Consult each member note.","pattern":null}}],"other_sources_count":3,"if_unstructured":{"summary":null},"local_terms":[{"term":"IMD (Intensidad Media Diaria)","language":"es","meaning":"Annual average daily traffic (AADT), vehicles/day"},{"term":"Red de Carreteras del Estado (RCE)","language":"es","meaning":"State-owned road network"},{"term":"RTIG (Red de Transporte de Interes General)","language":"es","meaning":"General-interest transport network used by HERMES"},{"term":"titularidad / titular","language":"es","meaning":"road ownership / owner"},{"term":"estacion de aforo / plan de aforos","language":"es","meaning":"traffic counting station / counting programme"},{"term":"tramo y PK (punto kilometrico)","language":"es","meaning":"road section and kilometre point"},{"term":"Catalogo de carreteras","language":"es","meaning":"official list of roads with owner, class and order"},{"term":"red autonomica / foral / provincial","language":"es","meaning":"regional / foral / provincial road network"}],"provenance":{"pass_count":1,"models":["Claude Sonnet 5.5 (High)"],"minutes_estimate":80,"pages_opened":36,"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/roads.json","detail_url":"https://georutter.org/v1/es/roads/detail.json","html_url":"https://georutter.org/es/roads/","country_url":"https://georutter.org/v1/countries/es.json"}
