Guides
for everything Geocodio
Guides
for everything Geocodio
OCD IDs
OCD identifiers (Open Civic Data Division IDs) are unique identifiers for political districts established by Open Civic Data.
For example, the OCD-ID for Virginia's 8th Congressional District is ocd-division/country:us/state:va/cd:8.
When you use Geocodio to process addresses and append electoral districts, we include OCD IDs when available.
Many civic tech tools and government APIs use these same identifiers, which makes it easy to match district data between sources.
UK OCD IDs
UK districts are referenced by two different identifier systems: GSS codes and OCD IDs. Geocodio includes both where available. See the UK identifiers section below.
All districts and OCD-IDs provided by Geocodio
Below you'll find lists of all political districts returned by Geocodio and their corresponding OCD-IDs.
CSV format
USA
Canada
UK
JSON format
USA
Canada
UK Identifiers: GSS Codes and OCD IDs
GSS Codes
GSS (Government Statistical Service) codes are the authoritative UK government identifiers, published and maintained by the Office for National Statistics. Every UK district returned by Geocodio includes a GSS code. If you need a stable, universally recognized identifier for a UK district, use the GSS code.
GSS codes follow a consistent format (e.g. E14001172 for a Westminster constituency in England, W05001234 for a Welsh ward). The first letter indicates the nation: E for England, S for Scotland, W for Wales, N for Northern Ireland.
OCD IDs
OCD IDs come from the Open Civic Data project, the same identifier system Geocodio uses for US Congressional districts. They are human-readable string identifiers (e.g. ocd-division/country:gb/part:eng/region:uki/ed:cities_of_london_and_westminster).
OCD IDs are useful if you already work with Open Civic Data in other contexts. They are not a canonical UK dataset, so coverage varies by district type. See the OCD-IDs guide for more:
| District Type | OCD ID Coverage |
|---|---|
| Westminster constituencies | 650 of 650 (full) |
| NI Assembly constituencies | 18 of 18 (full) |
| Senedd constituencies (pre-2026) | 23 of 40 (partial) |
| Scottish Parliament constituencies | 7 of 73 (partial) |
| Senedd constituencies (2026) | Not yet available |
| Scottish Parliament regions | Not available |
| Senedd regions | Not available |
| Wards and County Electoral Divisions | Not available |
When an OCD ID is not available for a row in uk-westminster or uk-devolved, the ocd_id field is returned as null. For uk-local rows, the ocd_id field is omitted, because Open Civic Data does not maintain any identifiers for UK local government.