{
  "id": "fr_hydro_station_code",
  "kind": "datatype",
  "status": "draft",
  "name": "French hydrometric site or station code (Sandre)",
  "doc": "Code of a hydrometric site or station in the Sandre dictionary of hydrometry (HYD 2.4), used by HydroPortail and Vigicrues. A site code has eight characters, the hydrographic zone (four) and an incremental number (four, J4310010); a station code adds a two-digit station number (H612901101). The 8-character codes of the former HYDRO stations were kept as site codes and are the CdStationHydroAncienRef of Vigicrues. Overseas zones start with a digit.",
  "is_pii": false,
  "categories": [
    "environment",
    "geo"
  ],
  "country": [
    "FR"
  ],
  "langs": [
    "fr"
  ],
  "classification": "identifier",
  "regexp": "^[A-Z0-9]\\d{7}(?:\\d{2})?$",
  "examples": [
    {
      "value": "Y3454010",
      "description": "Former station code (Vigicrues CdStationHydroAncienRef)",
      "valid": true
    },
    {
      "value": "H612901101",
      "description": "Station on the Charentonne at Bernay",
      "valid": true
    },
    {
      "value": "J4310010",
      "description": "Site code of the Sandre dictionary",
      "valid": true
    },
    {
      "value": "Y345401",
      "description": "seven characters",
      "valid": false
    },
    {
      "value": "Y34540100",
      "description": "nine characters",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.sandre.eaufrance.fr/ftp/documents/fr/ddd/hyd/2.4/sandre_dictionnaire_HYD_2.4.pdf"
    }
  ],
  "translations": {
    "fr": {
      "name": "Code station hydrométrique"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "frhydrostationbyname",
        "type": "field",
        "match": "regex",
        "file": "fr/fr_environment.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/FR/environment/fr_hydro_station_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/FR/environment/fr_hydro_station_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/FR/environment/fr_hydro_station_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/fr_hydro_station_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/fr_hydro_station_code.json"
  }
}