{
  "$id": "/insights/court_coverage",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Categorizes stats about a players court coverage across all rallies.",
  "properties": {
    "average_x_coverage_percentage": {
      "$ref": "/types/percentage",
      "description": "The average percentage of court width coverage assigned to the player during rallies, based on their positioning relative to their partner. It's only relevant in doubles; not included for singles games.",
      "title": "Percentage"
    },
    "heat_map_coordinates": {
      "additionalProperties": false,
      "description": "Scaled player positions during any shot event where the player is on the court.",
      "properties": {
        "xs_encoded": {
          "$ref": "/types/encoded_positions",
          "description": "Scaled, base64 encoded integers between [0,127] representing the player's position across the width (x dimension) of the court",
          "title": "Encoded X Positions"
        },
        "ys_encoded": {
          "$ref": "/types/encoded_positions",
          "description": "Scaled, reflected, base64 encoded integers between [0,127] representing the player's position across the length (y dimension) of the court",
          "title": "Encoded Y Positions"
        }
      },
      "required": [
        "xs_encoded",
        "ys_encoded"
      ],
      "title": "Heat Map Coordinates",
      "type": "object"
    },
    "md5_full": {
      "const": "a77b7c579d29425e36b278b0454941fb",
      "description": "MD5 of the all aspects of this schema (including non-functional elements like documentation)"
    },
    "md5_functional": {
      "const": "883a835a4c20445846664903e0aa53a4",
      "description": "MD5 of the functional aspects of this schema"
    },
    "total_distance_covered": {
      "description": "The number of feet each player travels between shots in all rallies combined.",
      "type": "number"
    }
  },
  "required": [
    "total_distance_covered",
    "heat_map_coordinates"
  ],
  "title": "Court Coverage",
  "type": "object"
}