{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fluvigil-de/json-schema/fluvigil-de-station-map-item-schema.json",
  "title": "StationMapItem",
  "description": "What a map marker needs, nothing more. See the station detail for the rest.",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fluvigil-de-openapi.yaml#/components/schemas/StationMapItem",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "water": {
      "type": [
        "string",
        "null"
      ]
    },
    "latitude": {
      "type": "number"
    },
    "longitude": {
      "type": "number"
    },
    "measurementType": {
      "type": "string",
      "enum": [
        "river",
        "groundwater",
        "sea_level",
        "reservoir"
      ]
    },
    "waterClass": {
      "$ref": "#/$defs/WaterClass"
    },
    "groundwaterTrend": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "rising",
        "falling",
        "steady",
        null
      ],
      "description": "Only set for groundwater, which the map marks by trend."
    },
    "lhpClass": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": -1,
      "maximum": 4
    },
    "levelState": {
      "type": [
        "string",
        "null"
      ]
    },
    "levelClassification": {
      "type": "object",
      "properties": {
        "severity": {
          "type": "string",
          "enum": [
            "low",
            "normal",
            "elevated",
            "high",
            "veryHigh",
            "unknown"
          ]
        }
      }
    }
  },
  "$defs": {
    "WaterClass": {
      "type": "string",
      "enum": [
        "river",
        "lake",
        "coast",
        "groundwater"
      ],
      "description": "The group a gauge belongs to on the map and in filters: rivers, lakes and reservoirs, coast and tide, groundwater. Stored per gauge; a tidal river section is `river` by `measurementType` and `coast` by class.\n"
    }
  }
}