Skip to main content
Research Preview — Under active development.

Location Records

Location records are the inputs to geospatial operations. They represent spatial data — points, polygons, routes, or any geometry — that Astral can compute against.

Supported Input Types

Astral currently supports two types of location records:
  1. Location Attestations — EAS attestations conforming to the Location Protocol v0.2 schema
  2. Raw GeoJSON — Unsigned geometry data for reference locations or prototyping
We plan to expand support for other location record formats in the future, including AT Protocol location lexicon records and other standards.

Location Attestations

Location Attestations are signed spatial records stored as EAS attestations. They contain:
  • Geometry: The spatial data (GeoJSON format)
  • Metadata: Optional descriptive information
  • Signature: Cryptographic proof of the attester’s identity
Code snippets need testing — Verify against actual implementation before use.

Storage Options

Location Attestations can be stored onchain or offchain:

Onchain Attestations

  • Stored on EAS contracts
  • Referenced by UID alone
  • Higher gas cost
  • Permanent, immutable

Offchain Attestations

  • Stored on IPFS, servers, etc.
  • Referenced by UID + URI
  • No gas cost to create
  • EIP-712 signed

Onchain

Offchain

Schema

Location Attestations follow the Location Protocol v0.2 schema:
Verification in progress — We are actively verifying that deployed schemas conform to Location Protocol v0.2. There may be inconsistencies between the documentation, deployed schemas, and the spec. See GitHub issue #11 for status.

Using Location Attestations

Location Attestations serve as inputs to geospatial operations:

Raw GeoJSON Alternative

You can also use raw GeoJSON without creating an attestation first:
Raw GeoJSON is not attested. The Policy Attestation proves “Astral computed the relationship between inputs A and B” but does NOT prove who signed those geometries. Use raw GeoJSON for reference geometries (official boundaries) or prototyping.

Fetching Location Attestations

Coordinate System

Location Attestations honor the srs field, using OGC URIs per Location Protocol v0.2:
  • Default: http://www.opengis.net/def/crs/OGC/1.3/CRS84 (WGS84, lon/lat order)
  • Custom: Any OGC CRS URI supported by PostGIS
Coordinates should be in [longitude, latitude] order (GeoJSON standard).

Next: Geospatial Operations

Learn about the spatial computations you can perform