Within
Check if a geometry is within a specified radius of a target geometry.Request body
The geometry to check (typically a point). See Input types for accepted formats.
Example request
Response
Returns a BooleanComputeResponse.Encodes the radius in centimeters:
"within:RADIUS_CM" (e.g., "within:50000" for a 500m radius).Signed EAS attestation. See AttestationData.
Signature for delegated onchain submission. See DelegatedAttestationData.
Example response
Notes
- Uses PostGIS
ST_DWithinfunction - Radius is always in meters in the request (no unit conversion needed)
- The
operationfield encodes the radius in centimeters:within:50000means 500 meters. Resolver contracts should use prefix matching, not exact string comparison - Returns
trueif the distance between geometries is less than or equal to the radius
SDK Method
See
astral.compute.within()