---
id: "es_adif_station_code"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["transport"]
country: ["ES"]
langs: ["es"]
quality: 65
url: "https://registry.apicrafter.io/datatype/es_adif_station_code"
---

# Spanish railway station code (ADIF) (`es_adif_station_code`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Five-digit code of a railway station on the Spanish network managed by ADIF. Renfe uses it as stop_id in its GTFS feeds, for example 60000 for Madrid-Puerta de Atocha and 71801 for Barcelona-Sants. Leading zeros are part of the code (01003).

- Parent datatype: `id`
- Personal data (PII): no
- Categories: Transportation (transport)
- Countries: Spain (ES)
- Languages: Spanish (es)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^\d{5}$
```

## Examples

- `60000` — Madrid-Puerta de Atocha-Almudena Grandes
- `17000` — Madrid-Chamartín-Clara Campoamor
- `71801` — Barcelona-Sants
- `37606` — Badajoz
- `1003` (invalid example) — Leading zero dropped

## Translations

- es: Código de estación de ADIF

## Quality

Score 65/100. Missing: source link, mapping (Wikidata, Schema.org, ...), detector coverage.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/es_adif_station_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/ES/transport/es_adif_station_code.yaml>
