Find the nearest areas
Get the areas closest to a point, nearest first, with the distance to each. It answers the questions a containment lookup can't, like which ward is nearest a point just offshore.
/areas:nearGood to know
- A distance of zero means the point touches the area, but only Find areas at a point says an area contains it.
withinsets how far to look, in metres, andlimithow many areas to return.
lngstringoptionalLongitude in WGS 84 decimal degrees, -180 to 180.
lonstringoptionalAlias for
lng, the WGS 84 longitude in decimal degrees.longitudestringoptionalAlias for
lng, the WGS 84 longitude in decimal degrees.latstringoptionalLatitude in WGS 84 decimal degrees, -90 to 90.
crsstringoptionalThe input coordinate reference system. The default
EPSG:4326useslngandlat;EPSG:27700uses British National Grideastingandnorthingor an Ordnance Surveygridref;EPSG:29902uses Irish Grideastingandnorthing.One ofEPSG:4326EPSG:27700EPSG:29902DefaultEPSG:4326eastingstringoptionalEasting in grid metres. Required with
crs=EPSG:27700orcrs=EPSG:29902; do not combine it with WGS 84lng/lat.northingstringoptionalNorthing in grid metres. Required with
crs=EPSG:27700orcrs=EPSG:29902; do not combine it with WGS 84lng/lat.gridrefstringoptionalA two-letter Ordnance Survey National Grid reference, followed by an even number of digits from 2 to 10, for example
TQ 30000 80000. Use only withcrs=EPSG:27700; do not combine it witheastingornorthing. A grid reference denotes a square, represented by its cell centre with the cell's half-diagonal included in uncertainty.geographystring[]optionalA geography to look the point up in. Repeat it or give a comma-separated list, up to four in total. A geography named only in a pinned
releaseneed not be repeated here.releasestring[]optionalA release to pin, as
{geography}/{release}, such asward/2025-12-uk-bgc, orward/latestfor its newest unambiguous published release. A bare release id is accepted when exactly one geography is requested. A pinned release is used whateverdatesays.datestringoptionalA calendar date as
YYYY-MM-DD, or a month asYYYY-MM. Every geography without a pinned release uses the latest release dated on or before it; without a date it uses the newest unambiguous published release. The country boundaries used to place a point that matches nothing are chosen the same way.accuracynumberoptionalHow far the true position may lie from the coordinate, in metres, such as a GPS fix's reported accuracy. Without it, uncertainty is half the coordinate's last written decimal place, which overstates it where a client drops trailing zeros.
limitinteger 1–10optionalHow many areas to return per geography, 1 to 10.
Default1withininteger 1–50000optionalThe furthest an area may be, in whole metres, up to 50 km.
Default1000
Returns
NearestAreasEnvelopeEach requested geography's nearest areas, with their distances.
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.
dataNearestAreasrequiredShowHide8 child fields
pointLookupPointrequiredShowHide5 child fields
lngnumberrequiredlatnumberrequiredcrsEPSG:4326requiredprecisionobjectrequiredShowHide3 child fields
decimalPlacesobjectrequireduncertaintyMnumberrequiredHow far the true position may lie from the coordinate, in metres.
basisstringrequiredOne ofstated-accuracydecimal-placesstated-accuracy-and-transformationdecimal-places-and-transformationgrid-reference-and-transformationstated-accuracy-and-grid-reference-and-transformation
inputobjectoptionalPresent when British National Grid or Irish Grid input was transformed to WGS 84.
ShowHide5 child fields
crsenumrequiredOne ofEPSG:27700EPSG:29902eastingnumberrequirednorthingnumberrequiredgridReferenceobjectoptionalPresent when an Ordnance Survey National Grid reference was supplied.
transformationobjectrequired
datestringoptionalwithinintegerrequiredlimitintegerrequiredrelationdistancerequireddistanceMethodstringrequiredresultsPointLookupRelease[]requiredShowHide15 child fields
geographystringrequiredboundaryReleasestringoptionalhrefstringoptionalselectionobjectrequiredShowHide4 child fields
policystringrequiredOne ofpinnedlatest-release-dated-on-or-beforedatestringoptionalsameMonthbooleanoptionalnextReleaseReference | nulloptional
coverageobjectoptionalShowHide1 child field
countriesstring[]required
boundaryResolutionobjectoptionalHow much the boundary's lines were generalised, read from the ONS release name.
undeclaredwhere the name does not say.ShowHide4 child fields
generalisationstringrequiredextentstringoptionalOne ofclipped-to-coastlinefull-extent-of-realmtoleranceMnumberoptionalbasisons-release-nameoptional
geometrySourceGeometrySourceoptionalWhere the served WGS84 geometry came from.
transformationis present only when the source was reprojected.ShowHide3 child fields
sourceCrsstringrequiredtransformationobjectoptionalcorrectionsobject[]optionalDeclared grid corrections that moved this area before it was reprojected, such as
northern-ireland-offset.
sourceobjectoptionalShowHide2 child fields
publisherstringoptionallicenceobjectoptional
statusstringoptionalOne offoundnone-withinambiguous-releaseno-release-for-dategeometry-unavailabledetailstringoptionalchoicesReleaseReference[]optionalShowHide5 child fields
idstringrequiredmonthstringrequiredtitlestringrequiredcountriesstring[]requiredhrefstringrequired
earliestReleaseReferenceoptionalShowHide5 child fields
idstringrequiredmonthstringrequiredtitlestringrequiredcountriesstring[]requiredhrefstringrequired
matchedintegeroptionaltruncatedbooleanoptionalnearestobject[]requiredShowHide6 child fields
rankintegerrequiredidstringrequiredcodestringrequirednamestringrequireddistanceMnumberrequiredMetres to the area, zero when the point is on or inside it. Not a containment claim.
geometrySourceGeometrySourceoptionalWhere the served WGS84 geometry came from.
transformationis present only when the source was reprojected.
notestringrequired
- 400The point,
limit,withinoraccuracyis malformed or out of range, or the geographies and releases are refused as forareas:contains. - 404No resource matches that identity.
- 503The referenced build artifact has not been built yet.
Every error has the same shape. See Errors for how to handle them.
Show the precise behaviourHide the precise behaviour
Returns up to limit areas of each requested geography whose published geometry lies within within metres of the point, nearest first. Releases are selected exactly as for areas:contains.
The coordinate forms are the same as areas:contains: default WGS 84 lng/lat (lon and longitude are also accepted for longitude), British National Grid easting/northing or an Ordnance Survey gridref with crs=EPSG:27700, or Irish Grid metres with crs=EPSG:29902.
This is a distance answer, labelled relation: distance, and never a containment one. An area at zero metres has the point on or inside it, but only areas:contains makes that claim, with its boundary rule and tolerance. Use this route where containment has nothing to say: a point offshore or in an estuary that a generalised boundary leaves out, or a site for which the nearest few areas all matter.
Distances are to the nearest part of each area's geometry, measured on the WGS 84 ellipsoid in a plane tangent at the point, which within the 50 km this route reaches departs from the geodesic by less than a tenth of a percent. They carry the coordinate's own uncertainty, given in point.precision. matched counts every area within the distance, and truncated says whether limit cut it.