GeoRutter

Geospatial data sources by country, with access methods and caveats.

Spain roads data sources

Where can I get the road network (geometry) of Spain, with road category, owner and traffic volume (annual average daily traffic)?

Answer

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).

Official data
Partial coverage
Non official data
Partial coverage
Published
2026-11-19
Research reviewed
2026-11-16
Access checked
No complete access check recorded

Requested attributes

AttributeCoverageSourcesScope and limitations
Road network geometry route_geometryCovered
  • s001
  • s002
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.
Road category road_categoryPartially covered
  • s001
  • s002
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.

Not checked: Open the national IGR-RT GeoPackage from CNIG (download button needs a browser) and list the rt_tramo_l fields clase, orden, titular.

Road owner ownerPartially covered
  • s001
  • s002
  • s003
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).

Not checked: Same as above: titular values of the national IGR-RT file were not inspected; the API roadlink has no owner field.

Annual average daily traffic annual_average_daily_trafficPartially covered
  • s001
  • s003
Coverage combines distinct components of the question; see the original detailed evidence and its geographic and technical limits.

Not checked: The original rows have different scopes. Their combination has not been established as complete; original rows are retained in internal curation.

Main caveats

Sources

HERMES - Red de Transporte de Interes General (ArcGIS REST): IMD per section, road type and owner of the State road network

Source id
s001
Publisher
Ministerio de Transportes y Movilidad Sostenible (SG de Planificacion, Red Transeuropea y Logistica; data from DG de Carreteras)
Official
Yes
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
Yes
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)
Date of data
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
Not a grouped source

IGR-RT - Redes de Transporte de Espana: road network (carreteras, urban streets, tracks) with owner and category

Source id
s002
Publisher
Instituto Geografico Nacional (IGN) / Centro Nacional de Informacion Geografica (CNIG)
Official
Yes
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
Yes
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
Date of data
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
Not a grouped source

Regional road traffic (IMD) datasets of autonomous communities and councils

Source id
s003
Publisher
Autonomous communities (Generalitat Valenciana, Generalitat de Catalunya, Gobierno de Navarra, Junta de Castilla y Leon, Comunidad de Madrid, Xunta de Galicia...)
Official
Yes
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
Not stated
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
Yes
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
Date of data
Not stated
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
Not stated
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
Not stated

Additional sources in the detail: 3. Read the full detail; locate each source by its source_id.

Document access

Summary
Not stated

Local search terms

Confidence

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.

Research 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.

Record metadata

Schema version
1.0
Country
es
Country name
Spain
Topic
roads
Territory
es
Territory level
country
Parent url
No parent territory
Html url
https://georutter.org/es/roads/