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:- Location Attestations — EAS attestations conforming to the Location Protocol v0.2 schema
- Raw GeoJSON — Unsigned geometry data for reference locations or prototyping
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: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:Fetching Location Attestations
Coordinate System
Location Attestations honor thesrs 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
Next: Geospatial Operations
Learn about the spatial computations you can perform