Skip to content
HALOWERK

Mobility, Warnings and Local Data

subdivision register lowest shared parent

Region comparison returns the deepest shared administrative ancestor of two subdivision codes. Use it when an agent needs a common containing region.

POST https://ort.halowerk.com/v1/subdivision-register-lowest-shared-parent

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
codestringYes
otherstringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "maxLength": 20,
      "minLength": 1
    },
    "other": {
      "type": "string",
      "maxLength": 20,
      "minLength": 1
    }
  },
  "required": [
    "code",
    "other"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "code": "ES-GI",
  "other": "ES-B"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "country": {
          "type": [
            "string",
            "null"
          ]
        },
        "subdivision": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "country",
        "subdivision"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-20 UTC.

More endpoints in this hub

All endpoints in this hub โ†’