ons-geo

Query the ONS Open Geography Portal for UK administrative boundary data via ArcGIS REST API.

1|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/danbri/forgetmenot --skill ons-geo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ons-geo
Source: https://github.com/danbri/forgetmenot/tree/main/skills/ons-geo
Command: npx skills add https://github.com/danbri/forgetmenot --skill ons-geo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the difficulty of locating and integrating precise UK administrative-geography boundary data, such as constituency polygons or local authority codes, into your analysis.

Core Features & Use Cases

  • Boundary Retrieval: Fetch precise geometry for Westminster constituencies, wards, and local authorities across various historical epochs.
  • Geographic Mapping: Join MP constituency codes to their corresponding lat/lon centroids or full boundary polygons for mapping applications.
  • Use Case: If you are building a dashboard to visualize election results, use this skill to pull the latest 2024 constituency boundary polygons to ensure your map accurately reflects current administrative divisions.

Quick Start

Use the ons-geo skill to retrieve the boundary polygon for the Westminster constituency with the GSS code E14001063.

Frequently Asked Questions about ons-geo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve UK administrative boundary polygons for Westminster constituencies using a GSS code?

Yes, you can retrieve historical administrative boundary data across multiple epochs by querying the ONS Open Geography Portal through the ArcGIS REST API, ensuring accurate spatial data joining and visualizing past boundary divisions for historical analysis.

What is the best way to map MP constituency codes to latitude and longitude centroids?

The best way to map MP constituency codes to lat/lon centroids is by retrieving authoritative geographic metadata from the ONS Open Geography Portal, which supports joining constituency codes to their corresponding coordinate points for mapping applications.

Does retrieving ONS geographic boundaries require an ArcGIS REST API connection?

Yes, retrieving ONS geographic boundaries requires ArcGIS REST API connectivity to fetch feature services and geometry data for specific GSS codes from the ONS Open Geography Portal, enabling constituency mapping and spatial data integration.

Can I fetch local authority and ward boundary polygons for election dashboard visualizations?

Yes, you can fetch local authority and ward boundary polygons for election dashboard visualizations by querying the ONS Open Geography Portal, retrieving the latest 2024 administrative boundary geometry to accurately reflect current electoral divisions.

Why should I use ONS Open Geography Portal for UK constituency mapping instead of other spatial data sources?

You should use the ONS Open Geography Portal for UK constituency mapping because it provides authoritative administrative boundary data across multiple historical epochs, ensuring spatial data joining uses official GSS codes rather than unofficial sources.