{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/university-of-waterloo/json-schema/university-of-waterloo-location-geo-schema.json",
  "title": "LocationGeo",
  "description": "Model representing a Location for the Buildings dataset in GEO JSON format",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/university-of-waterloo-locations-api-openapi.yml#/components/schemas/LocationGeo",
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "Type property of GEO JSON collection",
      "readOnly": true
    },
    "features": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Feature"
      },
      "description": "Features of this collection"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Feature": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ],
          "description": "Type of Feature",
          "readOnly": true
        },
        "properties": {
          "$ref": "#/$defs/Location"
        },
        "geometry": {
          "$ref": "#/$defs/Geometry"
        }
      },
      "additionalProperties": false,
      "description": "Feature of location collection"
    },
    "Geometry": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ],
          "description": "Type of geometry",
          "readOnly": true
        },
        "coordinates": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "number",
            "format": "double"
          },
          "description": "Latitude and Longitude collection of this location"
        }
      },
      "additionalProperties": false,
      "description": "Represents Geometry data of the Feature"
    },
    "Location": {
      "type": "object",
      "properties": {
        "buildingId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for this building"
        },
        "buildingCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "Alpha-numeric building code"
        },
        "parentBuildingCode": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unofficial, alpha-numeric building code that represents the parent location"
        },
        "buildingName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Display name of the building"
        },
        "alternateBuildingNames": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "Unofficial, collection of alternate building display names"
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ],
          "description": "Latitude co-ordinate of this location",
          "format": "double"
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ],
          "description": "Longitude co-ordinate of this location",
          "format": "double"
        }
      },
      "additionalProperties": false,
      "description": "Model representing a Location for the Buildings dataset"
    }
  }
}