Skip to content
Eden Engine

UK Local Authority Districts: Codes, Names and Centroids (ONS)

onsgeography/uk-local-authority-districts

Looks up UK local authority districts from the Office for National Statistics December 2024 edition: the GSS code (LAD24CD), English and Welsh name, centroid in British National Grid and in latitude and longitude, and the area and perimeter of each district. Returns every district up to a limit, or filter by code or name. Covers England, Wales, Scotland and Northern Ireland. Attributes only, no boundary polygons. ONS data licensed under the Open Government Licence v3.0, served by Omnial; not an official ONS product.

activeper callv1

Price

$0.0026 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.

Data source

Office for National Statistics

Source: Office for National Statistics licensed under the Open Government Licence v.3.0. Contains OS data © Crown copyright and database right 2025. Served by Eden Engine; not an official ONS product.

Use it

Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.

Connect once and your AI can find and run this tool, and any other it needs.

agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "onsgeography/uk-local-authority-districts" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "onsgeography/uk-local-authority-districts" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "onsgeography/uk-local-authority-districts", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "onsgeography/uk-local-authority-districts", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0026
Updated
Oct 20, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "limit"
  ],
  "properties": {
    "limit": {
      "type": "integer",
      "maximum": 400,
      "minimum": 1,
      "description": "How many districts to return, 1 to 400. There are 361 districts in this edition, so 400 returns all of them."
    },
    "where": {
      "type": "string",
      "default": "1=1",
      "pattern": "^(1=1|LAD24CD='[EWSN][0-9]{8}'|LAD24NM='[A-Za-z ,.-]{1,40}'|LAD24NM LIKE '%[A-Za-z ,.-]{1,40}%')$",
      "description": "Which districts. Defaults to 1=1 (all). Otherwise exactly one of: LAD24CD='E06000001' (by code), LAD24NM='Hartlepool' (exact name) or LAD24NM LIKE '%Leeds%' (name contains). Names with an apostrophe cannot be matched exactly; use the LIKE form with the part before it."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "results"
  ],
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "attributes"
        ],
        "properties": {
          "attributes": {
            "type": "object",
            "required": [
              "LAD24CD",
              "LAD24NM"
            ],
            "properties": {
              "FID": {
                "type": "integer",
                "description": "Row number in the source layer."
              },
              "LAT": {
                "type": "number",
                "description": "Centroid latitude, decimal degrees."
              },
              "LONG": {
                "type": "number",
                "description": "Centroid longitude, decimal degrees."
              },
              "BNG_E": {
                "type": "integer",
                "description": "Centroid easting, British National Grid (metres)."
              },
              "BNG_N": {
                "type": "integer",
                "description": "Centroid northing, British National Grid (metres)."
              },
              "LAD24CD": {
                "type": "string",
                "description": "GSS code, for example E06000001."
              },
              "LAD24NM": {
                "type": "string",
                "description": "District name in English."
              },
              "GlobalID": {
                "type": "string",
                "description": "Source record identifier."
              },
              "LAD24NMW": {
                "type": "string",
                "description": "District name in Welsh; a single blank space when it has none."
              },
              "Shape__Area": {
                "type": "number",
                "description": "Area in square metres."
              },
              "Shape__Length": {
                "type": "number",
                "description": "Perimeter in metres."
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "description": "One entry per district, in the service's own order. An empty list means no district matched."
    }
  },
  "description": "The matching districts, one entry per district.",
  "additionalProperties": true
}