{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/GeoCoordinates/v1/schema.json",
  "title": "GeoCoordinates",
  "description": "Objects Grid GeoCoordinates Object. Modeled in compliance with https://schema.org/GeoCoordinates",
  "type": "object",
  "properties": {
    "at_type": {
      "description": "The object type",
      "anyOf": [
        { "type":"string", "enum":["GeoCoordinates"] },
        { "type":"null" }
      ]
    },
    "address": {
      "type": [
        "string",
        "null"
      ]
    },
    "addressCountry": {
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/CountryCodeEnumeration/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "elevation": {
      "type": [
        "number",
        "null"
      ]
    },
    "latitude": {
      "type": "number",
      "minimum": -90,
      "maximum": 90
    },
    "longitude": {
      "type": "number",
      "minimum": -180,
      "maximum": 180
    },
    "postalCode": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": ["latitude","longitude"]
}