Get the shapes inside an area
Get the shapes of every area inside another, such as all the wards in a local authority, as one GeoJSON FeatureCollection. One request instead of hundreds.
/areas/{geography}/{release}/{code}/children/geometryGood to know
- Use
tier=lowortier=mediumfor web maps. Large authorities have a lot of detail.
geographystringrequiredA geography type id, e.g.
constituencyorward.releasestringrequiredA boundary release id, e.g.
2024-07-uk-bgc, orlatestfor the geography's newest release: the one/boundary-releases:resolvechooses for the furthest date. A response tolatestnames the release it read inContent-Location. A geography whose newest month holds several releases that differ in more than coverage, or that has a release whose id carries no month, is refused with409and the releases that could be newest.codestringrequiredThe official source code for the parent area.
tierstringoptionalThe generalisation tier applied to every member, as on the geometry route.
One offullhighmediumlowDefaultfullchildGeographystringoptionalWhich children to draw, as a geography such as
wardor as{geography}/{release}. Required when the area's children are published in more than one geography release, such as a district's wards and its LSOAs, since those overlap one another; the 409 lists the choices.
Returns
AreaChildrenGeometryEnvelopeThe children as a FeatureCollection, with any that could not be drawn listed beside it.
apiVersionv1requiredatlasReleasestringrequiredThe immutable
/atlas-releasereleaseIdfor the artifacts that produced this response.metaobjectrequiredShowHide1 child field
nextCursorstring | nullrequiredOpaque cursor for the next page, or null at the end.
dataAreaChildrenGeometryrequiredShowHide6 child fields
typeFeatureCollectionrequiredidstringrequiredparentArearequiredShowHide6 child fields
idstringrequiredgeographystringrequiredboundaryReleasestringrequiredcodestringrequirednamestringrequiredaliasesstring[]optional
collectionobjectrequiredWhat the collection holds and on what terms.
generalisationMethodis present only above thefulltier.ShowHide7 child fields
membersintegerrequiredAreas the crosswalk names as contained by the parent.
withGeometryintegerrequiredOf those, how many could be drawn.
verticesintegerrequiredtierstringrequiredOne offullhighmediumlowtoleranceMnumberrequiredminEffectiveAreaM2numberrequiredgeneralisationMethodobjectoptionalShowHide4 child fields
rulestringrequiredthresholdstringrequiredpartsstringrequiredsharedBordersstringrequired
withoutGeometryobject[]requiredMembers published as a relationship that could not be drawn, each with the reason. Empty when the collection is complete.
ShowHide5 child fields
idstringrequiredgeographystringrequiredboundaryReleasestringrequiredcodestringrequiredreasonstringrequired
featuresAreaChildGeometryFeature[]requiredShowHide4 child fields
typeFeaturerequiredidstringrequiredpropertiesArearequiredShowHide9 child fields
idstringrequiredgeographystringrequiredboundaryReleasestringrequiredcodestringrequirednamestringrequiredaliasesstring[]optionalmembershipobjectrequiredThe published crosswalk that places this area in the collection.
generalisationobjectrequiredWhat the collection's tier cost this member. The tier itself is stated once, on the collection.
geometrySourceGeometrySourcerequiredWhere the served WGS84 geometry came from.
transformationis present only when the source was reprojected.
geometryGeoJsonGeometryrequiredA GeoJSON geometry object as read from the raw cached source, or a GeometryCollection when the source represents one area code as more than one feature fragment.
ShowHide3 child fields
typestringrequiredcoordinatesanyoptionalPresent on every geometry type except GeometryCollection.
geometriesGeoJsonGeometry[]optionalPresent only when type is GeometryCollection.
- 400The
tierrequested is not one of the named tiers. - 404Either no compiled area matches that identity, or no published relationship names anything as contained by it.
- 409The area's children are published in more than one geography release and
childGeographydoes not choose one;choiceslists them. - 503The area exists but its geometry cannot be served: no raw source is declared, or its CRS has no transformation to WGS84.
Every error has the same shape. See Errors for how to handle them.
Show the precise behaviourHide the precise behaviour
Returns the geometry of every area a published crosswalk names as contained by this one, as a single FeatureCollection: all the wards in a local authority in one request rather than one request each. Each feature carries its own identity, the crosswalk that places it in the collection, and its geometry provenance.
Membership is a published crosswalk's claim, not a geometric test run at request time, so this returns what the Atlas has published rather than what a point-in-polygon sweep would find. An area with no published containment relationship is a 404, not an empty collection.
tier generalises every member, exactly as on the geometry route, and is the reason this endpoint is usable at all for a large authority. The method is reported once for the collection rather than on each member; each member reports only what the tier cost it, so one that lost an island can be told from one that did not. Note the caveat that travels with it: members are generalised one at a time, so above full neighbours in the same collection may disagree along a shared border.
A member that is published as a relationship but has no servable geometry is listed in withoutGeometry with the reason, rather than being passed over. collection.members and collection.withGeometry disagreeing is how a caller tells a partial collection from a complete one; the response is still a 200.