{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/grubhub/main/json-schema/grubhub-feature-schema.json",
  "title": "Feature",
  "x-generated": "2026-09-17",
  "x-method": "derived",
  "x-source": "openapi/grubhub-connect-endpoints-openapi.yml#/components/schemas/Feature",
  "required": [
    "geometry",
    "properties",
    "type"
  ],
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "The type of feature.",
      "example": "Feature"
    },
    "properties": {
      "$ref": "#/$defs/Properties"
    },
    "geometry": {
      "$ref": "#/$defs/Geometry"
    }
  },
  "description": "The feature information of the delivery area.",
  "$defs": {
    "Geometry": {
      "required": [
        "coordinates",
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of geometric shape of the delivery area.",
          "example": "Polygon"
        },
        "coordinates": {
          "type": "array",
          "description": "The coordinates of the delivery area.",
          "example": [
            [
              [
                0.0,
                0.0
              ],
              [
                0.0,
                1.0
              ],
              [
                1.0,
                1.0
              ],
              [
                1.0,
                0.0
              ],
              [
                0.0,
                0.0
              ]
            ]
          ],
          "items": {
            "type": "array",
            "description": "The coordinates of the delivery area.",
            "example": [
              [
                [
                  0.0,
                  0.0
                ],
                [
                  0.0,
                  1.0
                ],
                [
                  1.0,
                  1.0
                ],
                [
                  1.0,
                  0.0
                ],
                [
                  0.0,
                  0.0
                ]
              ]
            ],
            "items": {
              "type": "array",
              "description": "The coordinates of the delivery area.",
              "example": [
                [
                  [
                    0.0,
                    0.0
                  ],
                  [
                    0.0,
                    1.0
                  ],
                  [
                    1.0,
                    1.0
                  ],
                  [
                    1.0,
                    0.0
                  ],
                  [
                    0.0,
                    0.0
                  ]
                ]
              ],
              "items": {
                "type": "number",
                "description": "The coordinates of the delivery area.",
                "format": "double"
              }
            }
          }
        }
      },
      "description": "The geometry of the delivery area."
    },
    "Properties": {
      "required": [
        "name"
      ],
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the delivery area.",
          "example": "CHICAGO-IL"
        }
      },
      "description": "The properties of the delivery area."
    }
  }
}