Distance
Calculate the distance between two geometries in meters.Request body
First geometry. See Input types for accepted formats.
Example request
Response
Returns a NumericComputeResponse.Signed EAS attestation. See AttestationData.
Signature for delegated onchain submission. See DelegatedAttestationData.
Example response
Notes
- Distance is calculated using PostGIS
ST_Distancewith geodetic coordinates - Result is in meters with centimeter precision
- The onchain attested value is scaled to centimeters (integer) for EVM compatibility
- For raw GeoJSON inputs, a keccak256 hash is used in
inputRefs
SDK Method
See
astral.compute.distance()