{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/acuris-geo-com/json-schema/acuris-geo-com-postcode-address-schema.json",
  "title": "PostcodeAddress",
  "description": "One delivery point returned by `/postcode-lookup` (Royal Mail PAF).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/acuris-geo-com-postcode-lookup-api-openapi.yml#/components/schemas/PostcodeAddress",
  "type": "object",
  "properties": {
    "street": {
      "type": "string"
    },
    "house_number": {
      "type": "string"
    },
    "building_name": {
      "type": "string"
    },
    "organisation_name": {
      "type": "string"
    },
    "dependent_street": {
      "type": "string"
    },
    "dependent_locality": {
      "type": "string",
      "description": "PAF village / dependent locality."
    },
    "double_dependent_locality": {
      "type": "string",
      "description": "PAF sub-locality below `dependent_locality`."
    },
    "post_town": {
      "type": "string",
      "description": "The PAF post town; `city` duplicates it for backward compatibility."
    },
    "city": {
      "type": "string"
    },
    "postcode": {
      "type": "string"
    },
    "address_lines": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Printable Royal Mail address lines, in order."
    },
    "formatted_address": {
      "type": "string",
      "description": "Single-line join of `address_lines`."
    },
    "county": {
      "type": "string",
      "description": "Traditional county (PAF postcode → county map)."
    },
    "administrative_county": {
      "type": "string",
      "description": "PAF Administrative County (local authority). On some postcodes (e.g. M1 1AE) it is the only county held — `county` blank. Present when extended UK fields are enabled (on by default)."
    },
    "udprn": {
      "type": "string",
      "description": "Royal Mail Unique Delivery Point Reference Number."
    },
    "uprn": {
      "type": "string",
      "description": "Ordnance Survey Unique Property Reference Number."
    },
    "uprn_match_m": {
      "type": "number",
      "description": "Distance in metres between the PAF delivery point and the matched OS Open UPRN coordinate (0.0 is a real and best value). Present when extended UK fields are enabled (on by default)."
    },
    "lat": {
      "type": "number",
      "description": "Omitted when no coordinate is available for the delivery point."
    },
    "lng": {
      "type": "number",
      "description": "Omitted when no coordinate is available for the delivery point."
    },
    "accuracy_type": {
      "type": "string",
      "x-extensible-enum": [
        "rooftop",
        "postcode"
      ],
      "description": "`rooftop` when an address-level coordinate is available, otherwise `postcode` (postcode-unit centroid). Omitted (along with `lat`/`lng`) when the delivery point has no coordinate. Open set — see AccuracyType; do not treat an unrecognized value as a failure."
    }
  }
}