Added
- GET /v1/geography/areas/{codes} looks up areas by GSS code, up to 100 comma-separated codes in one request. Each area carries
code,areaType,vintage,name,nationandtier.nationisENG,WAL,SCOorNIR, and null for an area that crosses a border.nameis null where the publisher gives none, and is not unique. Narrow the lookup withareaTypeorvintage; without them every edition held comes back. - GET /v1/geography/areas/{code}/ancestors lists everything that contains an area, and GET /v1/geography/areas/{code}/descendants everything inside it. Each row adds
depth, which is 1 for a direct relationship, andminFit, which isexact,best_fitorspatialand reports the weakest fit anywhere along the path. Anything other thanexactmeans a figure summed along that path is an approximation, so carryminFitinto any aggregation you build on it. Return only ancestors at one tier withtier, or only descendants of one layer withdescendantType. - Descendants are paged with
limit, from 1 to 1,000 and 100 by default, andoffset, andtotal_countreports the size of the whole set. A unitary authority is both a district and a county under one code, so setareaTypeto the layer you mean: a request without it returns each descendant once for each layer the code belongs to. - GET /v1/geography/areas/{code}/children lists only the immediate children of an area, each with its
fitTypeandsourceId. Return only children of one layer withchildType. - GET /v1/geography/areas/{code}/provenance says where an area's record came from:
custodian,title,url,licence,fetchedAt, andattribution, the acknowledgement line the custodian requires, to reproduce verbatim wherever you pass the data on.sha256identifies the exact file the record was read from, andfromArchiveis true when that file came from an archived copy because the publisher could not be reached. - GET /v1/geography/release returns the current geography
release. Ancestors, descendants and children acceptreleaseto pin a query to one release, and follow the current release when it is left out. A code or release the graph does not hold returns an emptydatalist rather than a 404. - The place graph returns areas and the relationships between them, not boundaries. It is available on the same product access as
/v1/area-referenceand/v1/location. - Land constraint designations carry two more
metadatakeys on POST /v1/land-constraint/designations/query and GET /v1/land-constraint/designations/{designationId}. On an Article 4 direction area,permitted_development_rightsrecords which rights the direction withdraws, in the local authority's own wording: most entries are semicolon-separated class codes from the Town and Country Planning (General Permitted Development) (England) Order 2015, such as1A;1C;1D;1F;2A;2B, and the rest are a sentence naming the Parts and Classes, so parse it defensively. On an agricultural land classification area,bmvis true where the grade counts as Best and Most Versatile agricultural land. Like the rest ofmetadata, both keys need thedesignationSourceDatapermission on your licence, and the reference lists the keys each designation product returns.
Affected endpoints
- GET/v1/geography/areas/{codes}
- GET/v1/geography/areas/{code}/ancestors
- GET/v1/geography/areas/{code}/descendants
- GET/v1/geography/areas/{code}/children
- GET/v1/geography/areas/{code}/provenance
- GET/v1/geography/release
- POST/v1/land-constraint/designations/query
- GET/v1/land-constraint/designations/{designationId}