Research preview — APIs may change. GitHub
Location Data
Location data is what Astral operates on. Every API call starts with spatial data — points, polygons, lines, or references to previously recorded locations. But not all location data is created equal. The provenance of a piece of location data determines how much trust you can place in it.The Verifiability Spectrum
Astral works with location data at three levels of verifiability:| Level | What it is | What you know |
|---|---|---|
| Raw GeoJSON | Unsigned geospatial data | The vector geometry itself — nothing about who created it or whether it’s been tampered with |
| Signed location record | EAS attestation with cryptographic signature | Who attested to this location, plus assurances that data hasn’t been changed |
| Location proof | Signed location record + evidence from proof-of-location systems | All of the above, plus independently evaluable evidence about a claim about the location of an event |
v0 supports vector geospatial data only. Raster support (GeoTIFFs, imagery analysis) is planned.
Geospatial data sources
Location data comes from many sources, each with different properties:- Device sensors — GPS, Wi-Fi, cellular positioning. Ubiquitous but often spoofable.
- Network infrastructure — Cell tower triangulation, IP geolocation, internet latency measurements. Coarse but hard to manipulate without network access.
- Hardware attestation — Secure enclave readings, hardware keystores. Harder to forge but still device-dependent.
- Institutional records — Land registries, shipping manifests, IoT telemetry. Trusted because of the institution, not cryptography.
- Reference data — Official boundaries, standard geometries, public datasets. Trusted because they’re publicly auditable.
Coordinate system
All location data in v0 of the Astral Protocol uses GeoJSON as the geometry format. Coordinates follow the GeoJSON standard:- Default Coordinate Reference System (CRS): WGS84 (
http://www.opengis.net/def/crs/OGC/1.3/CRS84) - Coordinate order:
[longitude, latitude]— note that this is the opposite of what many mapping APIs use (a common challenge in GIS systems — here’s why.)
Next: GeoJSON
Raw unsigned geospatial data
See also:
- SDK: Location module — creating and fetching location records
- API: Types — input format reference