Research preview — APIs may change. GitHub
GeoJSON
GeoJSON is raw, unsigned geospatial data. It’s the simplest way to pass location data into Astral — and the least verifiable.The format
GeoJSON (RFC 7946) is a standard format for encoding geographic data structures. The full spec defines three object types — Geometry, Feature (geometry + properties), and FeatureCollection — but Astral v0 works with bare Geometry objects only, not Feature or FeatureCollection wrappers. A Geometry object has two keys:type— the geometry type:Point,LineString,Polygon,MultiPoint,MultiLineString,MultiPolygon, orGeometryCollectioncoordinates— nested arrays of[longitude, latitude]positions
[lon, lat] pair. A LineString is an array of positions. A Polygon is an array of linear rings — where each ring is an array of positions and the first and last position must be identical (closing the ring to form a valid area).
What GeoJSON does not provide
- Attribution — No record of who created it
- Integrity — No way to detect if it’s been modified
- Correspondence — No evidence that it reflects reality
Coordinate conventions
| Convention | Value |
|---|---|
| Format | GeoJSON (RFC 7946) |
| CRS | WGS84 (http://www.opengis.net/def/crs/OGC/1.3/CRS84) |
| Coordinate order | [longitude, latitude] |
| Altitude | Optional third coordinate, meters above WGS84 ellipsoid |
Tools for working with GeoJSON
- geojson.io — Draw, edit, and export GeoJSON on a map. The standard quick-start tool.
- Placemark Play — Open-source geodata editor with drawing and algorithmic operations (buffering, simplification).
- MapShaper — Simplify, convert, and inspect vector data. Useful for reducing file size and format conversion.
Next: Location records
Signed, verifiable location data
See also:
- API: Types — Input — how raw GeoJSON is passed to API endpoints