{
  "id": "wind_direction",
  "kind": "datatype",
  "status": "draft",
  "name": "Wind direction (degrees)",
  "doc": "Direction the wind blows from, in degrees clockwise from true north: 0 or 360 is a north wind, 90 an east wind. Weather stations report it with the wind speed, often next to a compass point (compass_point) of the same reading. A number from 0 to 360 alone can be any angle, so a value is a wind direction only in a field named after it.",
  "parent": "numeric",
  "is_pii": false,
  "categories": [
    "environment",
    "science",
    "values"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^(?:360(?:[.,]0+)?|3[0-5]\\d(?:[.,]\\d+)?|[12]?\\d{1,2}(?:[.,]\\d+)?)\\s?(?:°|deg)?$",
  "examples": [
    {
      "value": "105.2",
      "description": "east-southeast",
      "valid": true
    },
    {
      "value": "270",
      "description": "a west wind",
      "valid": true
    },
    {
      "value": "45°",
      "description": "with the degree sign",
      "valid": true
    },
    {
      "value": "NNE",
      "description": "a compass point",
      "valid": false
    },
    {
      "value": "361",
      "description": "above 360 degrees",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Wind_direction"
    }
  ],
  "translations": {
    "ru": {
      "name": "Направление ветра (градусы)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "winddirectionbyname",
        "type": "field",
        "match": "regex",
        "file": "common/observations.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/environment/wind_direction.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/environment/wind_direction.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/environment/wind_direction.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/wind_direction",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/wind_direction.json"
  }
}