{
  "id": "es_adif_station_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Spanish railway station code (ADIF)",
  "doc": "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": "id",
  "is_pii": false,
  "categories": [
    "transport"
  ],
  "country": [
    "ES"
  ],
  "langs": [
    "es"
  ],
  "classification": "identifier",
  "regexp": "^\\d{5}$",
  "examples": [
    {
      "value": "60000",
      "description": "Madrid-Puerta de Atocha-Almudena Grandes",
      "valid": true
    },
    {
      "value": "17000",
      "description": "Madrid-Chamartín-Clara Campoamor",
      "valid": true
    },
    {
      "value": "71801",
      "description": "Barcelona-Sants",
      "valid": true
    },
    {
      "value": "37606",
      "description": "Badajoz",
      "valid": true
    },
    {
      "value": "1003",
      "description": "Leading zero dropped",
      "valid": false
    }
  ],
  "translations": {
    "es": {
      "name": "Código de estación de ADIF"
    }
  },
  "quality": {
    "score": 65,
    "missing": [
      "source link",
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/ES/transport/es_adif_station_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/ES/transport/es_adif_station_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/ES/transport/es_adif_station_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/es_adif_station_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/es_adif_station_code.json"
  }
}