{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/esri/json-schema/esri-place-schema.json",
  "title": "Place",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/esri-places-api-openapi.yml#/components/schemas/Place",
  "type": "object",
  "properties": {
    "placeId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "location": {
      "$ref": "#/$defs/Point"
    },
    "categories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Category"
      }
    },
    "address": {
      "type": "object",
      "properties": {
        "streetAddress": {
          "type": "string"
        },
        "extended": {
          "type": "string"
        },
        "locality": {
          "type": "string"
        },
        "designatedMarketArea": {
          "type": "string"
        },
        "region": {
          "type": "string"
        },
        "postcode": {
          "type": "string"
        },
        "poBox": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "adminRegion": {
          "type": "string"
        },
        "censusBlockId": {
          "type": "string"
        }
      }
    },
    "contactInfo": {
      "type": "object",
      "properties": {
        "telephone": {
          "type": "string"
        },
        "website": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "hours": {
      "type": "object",
      "properties": {
        "openingText": {
          "type": "string"
        },
        "open": {
          "type": "boolean"
        }
      }
    }
  },
  "$defs": {
    "Category": {
      "type": "object",
      "properties": {
        "categoryId": {
          "type": "string"
        },
        "label": {
          "type": "string"
        }
      }
    },
    "Point": {
      "type": "object",
      "properties": {
        "x": {
          "type": "number",
          "description": "Longitude"
        },
        "y": {
          "type": "number",
          "description": "Latitude"
        },
        "spatialReference": {
          "$ref": "#/$defs/SpatialReference"
        }
      }
    },
    "SpatialReference": {
      "type": "object",
      "properties": {
        "wkid": {
          "type": "integer",
          "description": "Well-known ID for the spatial reference (e.g., 4326 for WGS84)"
        },
        "latestWkid": {
          "type": "integer"
        }
      }
    }
  }
}