{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/GeoShape/v1/schema.json",
  "title": "GeoShape",
  "description": "Objects Grid GeoShape. An area: a box, a circle, a line or a polygon of coordinates, or a postal code and country. Modeled in compliance with https://schema.org/GeoShape.",
  "type": "object",
  "properties": {
    "at_type": {
      "description": "The object type",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "GeoShape"
      ]
    },
    "box": {
      "description": "Two points, 'south-west-lat south-west-lon north-east-lat north-east-lon'",
      "type": [
        "string",
        "null"
      ]
    },
    "circle": {
      "description": "A point and a radius in metres, 'lat lon radius'",
      "type": [
        "string",
        "null"
      ]
    },
    "line": {
      "description": "Points, 'lat1 lon1 lat2 lon2 ...'",
      "type": [
        "string",
        "null"
      ]
    },
    "polygon": {
      "description": "Points, the last the same as the first, 'lat1 lon1 lat2 lon2 ... lat1 lon1'",
      "type": [
        "string",
        "null"
      ]
    },
    "postalCode": {
      "description": "A postal code",
      "type": [
        "string",
        "null"
      ]
    },
    "addressCountry": {
      "description": "The country, ISO 3166-1 alpha-2",
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/CountryCodeEnumeration/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "at_type"
  ],
  "unevaluatedProperties": false
}
