{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Location",
  "title": "Location",
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code"
    },
    "region": {
      "type": "string"
    },
    "locality": {
      "type": "string"
    },
    "streetAddress": {
      "type": "string"
    },
    "postalCode": {
      "type": "string"
    },
    "longitude": {
      "type": "number",
      "minimum": -180,
      "maximum": 180
    },
    "latitude": {
      "type": "number",
      "minimum": -90,
      "maximum": 90
    },
    "altitude": {
      "type": "number",
      "description": "Altitude in meters"
    }
  }
}