{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aura-historia-com/json-schema/aura-historia-com-public-party-location-data-schema.json",
  "title": "PublicPartyLocationData",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aura-historia-com-parties-api-openapi.yml#/components/schemas/PublicPartyLocationData",
  "type": "object",
  "required": [
    "partyId",
    "partyName",
    "locationId",
    "label",
    "basis"
  ],
  "properties": {
    "partyId": {
      "type": "string"
    },
    "partyName": {
      "type": "string"
    },
    "locationId": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "basis": {
      "type": "string",
      "enum": [
        "CALLER_ASSERTED",
        "ACCEPTED_DERIVED",
        "MIXED_ASSERTED_AND_DERIVED"
      ]
    },
    "country": {
      "type": "string"
    },
    "subdivision": {
      "type": "string"
    },
    "point": {
      "$ref": "#/$defs/GeographicOriginData"
    },
    "precision": {
      "type": "string",
      "enum": [
        "PREMISES",
        "STREET",
        "LOCALITY",
        "REPRESENTATIVE"
      ]
    },
    "distanceKm": {
      "type": "number",
      "minimum": 0,
      "description": "Rounded display distance following evidence precision."
    }
  },
  "$defs": {
    "GeographicOriginData": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "latitude",
        "longitude"
      ],
      "description": "Explicit finite numeric WGS 84 coordinates in degrees; no text, address or preference resolution.",
      "properties": {
        "latitude": {
          "type": "number",
          "minimum": -90,
          "maximum": 90
        },
        "longitude": {
          "type": "number",
          "minimum": -180,
          "maximum": 180
        }
      }
    }
  }
}