Vepler logo
v2.138.0

Find planning applications around a point with the new spatial query filter

Planning query now supports a near filter to retrieve applications within a metre radius of a point, returned closest-first with a distance field on each result.

Added

  • Added a near spatial filter to POST /v1/planning/query. Supply near as { lat, lng, radiusM } to return only applications whose site point lies within radiusM metres of the centre. Accepts a radius from 100 to 50000 metres.
  • Results matched by near are ordered closest-first, overriding any sortBy/sortOrder. You can still combine near with other filters such as statuses or receivedDateFrom to narrow the set further.
  • Added a distance field to each application in the response: the straight-line distance in metres from the site centroid to the supplied centre. It is populated on near queries, null when an application has no site point, and null for non-spatial lookups.

Affected endpoints