curl --request POST \
--url https://api.eddy.engineer/v1/spatial.snapshot \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"fetched_at": "<string>",
"licence": "<string>",
"source": {
"dataset": "<string>",
"provider": "<string>",
"url": "<string>",
"version": "<string>"
},
"blob": "<string>",
"bounds": [
123
],
"delimiter": "<string>",
"features": [
"<string>"
],
"height_kind": {},
"name": "<string>",
"payload_base64": "<string>",
"text": "<string>",
"url": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/spatial.snapshot"
payload = {
"fetched_at": "<string>",
"licence": "<string>",
"source": {
"dataset": "<string>",
"provider": "<string>",
"url": "<string>",
"version": "<string>"
},
"blob": "<string>",
"bounds": [123],
"delimiter": "<string>",
"features": ["<string>"],
"height_kind": {},
"name": "<string>",
"payload_base64": "<string>",
"text": "<string>",
"url": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fetched_at: '<string>',
licence: '<string>',
source: {
dataset: '<string>',
provider: '<string>',
url: '<string>',
version: '<string>'
},
blob: '<string>',
bounds: [123],
delimiter: '<string>',
features: ['<string>'],
height_kind: {},
name: '<string>',
payload_base64: '<string>',
text: '<string>',
url: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/spatial.snapshot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/spatial.snapshot",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'fetched_at' => '<string>',
'licence' => '<string>',
'source' => [
'dataset' => '<string>',
'provider' => '<string>',
'url' => '<string>',
'version' => '<string>'
],
'blob' => '<string>',
'bounds' => [
123
],
'delimiter' => '<string>',
'features' => [
'<string>'
],
'height_kind' => [
],
'name' => '<string>',
'payload_base64' => '<string>',
'text' => '<string>',
'url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/spatial.snapshot"
payload := strings.NewReader("{\n \"fetched_at\": \"<string>\",\n \"licence\": \"<string>\",\n \"source\": {\n \"dataset\": \"<string>\",\n \"provider\": \"<string>\",\n \"url\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"blob\": \"<string>\",\n \"bounds\": [\n 123\n ],\n \"delimiter\": \"<string>\",\n \"features\": [\n \"<string>\"\n ],\n \"height_kind\": {},\n \"name\": \"<string>\",\n \"payload_base64\": \"<string>\",\n \"text\": \"<string>\",\n \"url\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/spatial.snapshot")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fetched_at\": \"<string>\",\n \"licence\": \"<string>\",\n \"source\": {\n \"dataset\": \"<string>\",\n \"provider\": \"<string>\",\n \"url\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"blob\": \"<string>\",\n \"bounds\": [\n 123\n ],\n \"delimiter\": \"<string>\",\n \"features\": [\n \"<string>\"\n ],\n \"height_kind\": {},\n \"name\": \"<string>\",\n \"payload_base64\": \"<string>\",\n \"text\": \"<string>\",\n \"url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/spatial.snapshot")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fetched_at\": \"<string>\",\n \"licence\": \"<string>\",\n \"source\": {\n \"dataset\": \"<string>\",\n \"provider\": \"<string>\",\n \"url\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"blob\": \"<string>\",\n \"bounds\": [\n 123\n ],\n \"delimiter\": \"<string>\",\n \"features\": [\n \"<string>\"\n ],\n \"height_kind\": {},\n \"name\": \"<string>\",\n \"payload_base64\": \"<string>\",\n \"text\": \"<string>\",\n \"url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"derived": {
"key": "<string>",
"kind": "<string>",
"summary": {}
},
"key": "<string>",
"rule": "<string>",
"snapshot": {
"bounds": [
123
],
"connector": "<string>",
"derived": {
"key": "<string>",
"kind": "<string>"
},
"fetched_at": "<string>",
"id": "<string>",
"licence": "<string>",
"name": "<string>",
"payload": "<string>",
"payload_bytes": 123,
"payload_format": "<string>",
"schema_version": "<string>",
"source": {
"dataset": "<string>",
"provider": "<string>",
"url": "<string>",
"version": "<string>"
}
}
}A connector's snapshot and its derived document (SP5)
The connector contract: the engine owns what derives and CONNECTS to what someone else maintains, and a connector never answers live. The payload (an uploaded blob, payload_base64, text, or a url the engine fetches itself — exactly one; SP5.b: fetching is allowed only from hosts the operator listed in SS_SPATIAL_FETCH_HOSTS, else FETCH_DENIED, http / https, 256 MB, and the snapshot records the fetch — URL, status, content type, ETag / Last-Modified, size — and stamps fetched_at when the caller did not) becomes a content-addressed blob; the snapshot records the connector, the source (provider, dataset, version, url), fetched_at as the caller states it (the engine keeps no wall clock of its own), the licence and the bounds; the document DERIVED from the payload is stored with that provenance in its source and the snapshot names the derived document. Connectors: elevation.geotiff → an SP2 raster (height_kind when the file states no vertical CRS); osm.extract (XML) and osm.pbf (SP5.b: the binary form through an own protobuf reader — raw and zlib blobs, dense and plain nodes, ways; the two forms of one extract mint one document) → a road graph (the highway ways’ nodes and consecutive-node edges, tags verbatim, oneway as tagged, geodesic lengths; nothing re-authored — the rules stay in the tags for the router); airspace.openair (SP5.b: OpenAir text — AC / AN / AL / AH / DP / V X= / DC circles → cylinders / DA and DB arcs → 3° chords; P / R / Q / CTR / GP keep-out, the rest advisory) and airspace.faa_uasfm (SP5.b: the FAA UAS Facility Map GeoJSON — each cell’s CEILING in feet AGL becomes a keep-out from that height up) → volume documents; airspace.geojson → SP4 volumes (the engine’s own floor_m / ceiling_m / *_ref / kind properties, or OpenAIP’s lowerLimit / upperLimit with units M / FT / FL and datums GND / MSL / STD — the mapping stated in the answer). A missing licence, provider, dataset or fetch time refuses SNAPSHOT; an unknown connector CONNECTOR. UD14: table.csv — CSV text (RFC 4180) → a table document (ss.spatial.table/1, every cell the text the file carried; delimiter when it is not a comma), read at GET /v1/spatial.table/{key} and joined to a vector document’s features by key with POST /v1/spatial.vector.join. EG14: osm.features (OSM XML) and osm.features.pbf (the binary form) keep what a tag filter names (features: railway=*, barrier=fence, man_made=pipeline, power=line|minor_line|cable, building=* unless stated) → an SP3 vector document in the geodetic frame, read by the road graph’s two OSM readers, so both forms of one extract mint one document. A tagged node is a Point; a way a LineString, or a Polygon when it closes and is an area (area=yes, a building, landuse, leisure, amenity, natural or place key, power=substation|plant; a closed fence stays a line); a type=multipolygon relation a Polygon or MultiPolygon with its inner rings. Each feature carries its tags verbatim, @id (way/123) and @rule; a way the extract cut is kept as the runs it carries, marked @clipped; a multipolygon that does not close is listed in the report, never half-built. Features are ordered nodes, ways, relations, each by OSM id. The answer’s derived.summary.report counts what was kept per rule and what was not; the document’s source carries the filter, the report and the snapshot’s provenance (source.snapshot), so every result that reads it names the snapshot. An empty or malformed filter refuses FEATURE_FILTER. UD17: shapefile.zip — a zipped shapefile as agencies publish one (ABS ASGS Edition 3 postal areas, POA_2021_AUST_GDA2020_SHP.zip): exactly one .shp with its .prj beside it under the same stem (the .dbf read when present) → an SP3 vector document in the .prj’s frame, read as spatial.import reads a shapefile (GDA94 / GDA2020 geographic, MGA zones); records with no shape are left out and counted. No .shp, several, or no .prj refuses SHAPEFILE_ZIP. The answer’s derived.summary.shapefile names the members read, the frame’s origin and the record counts; the document’s source.snapshot names the snapshot.
curl --request POST \
--url https://api.eddy.engineer/v1/spatial.snapshot \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"fetched_at": "<string>",
"licence": "<string>",
"source": {
"dataset": "<string>",
"provider": "<string>",
"url": "<string>",
"version": "<string>"
},
"blob": "<string>",
"bounds": [
123
],
"delimiter": "<string>",
"features": [
"<string>"
],
"height_kind": {},
"name": "<string>",
"payload_base64": "<string>",
"text": "<string>",
"url": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/spatial.snapshot"
payload = {
"fetched_at": "<string>",
"licence": "<string>",
"source": {
"dataset": "<string>",
"provider": "<string>",
"url": "<string>",
"version": "<string>"
},
"blob": "<string>",
"bounds": [123],
"delimiter": "<string>",
"features": ["<string>"],
"height_kind": {},
"name": "<string>",
"payload_base64": "<string>",
"text": "<string>",
"url": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fetched_at: '<string>',
licence: '<string>',
source: {
dataset: '<string>',
provider: '<string>',
url: '<string>',
version: '<string>'
},
blob: '<string>',
bounds: [123],
delimiter: '<string>',
features: ['<string>'],
height_kind: {},
name: '<string>',
payload_base64: '<string>',
text: '<string>',
url: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/spatial.snapshot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/spatial.snapshot",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'fetched_at' => '<string>',
'licence' => '<string>',
'source' => [
'dataset' => '<string>',
'provider' => '<string>',
'url' => '<string>',
'version' => '<string>'
],
'blob' => '<string>',
'bounds' => [
123
],
'delimiter' => '<string>',
'features' => [
'<string>'
],
'height_kind' => [
],
'name' => '<string>',
'payload_base64' => '<string>',
'text' => '<string>',
'url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/spatial.snapshot"
payload := strings.NewReader("{\n \"fetched_at\": \"<string>\",\n \"licence\": \"<string>\",\n \"source\": {\n \"dataset\": \"<string>\",\n \"provider\": \"<string>\",\n \"url\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"blob\": \"<string>\",\n \"bounds\": [\n 123\n ],\n \"delimiter\": \"<string>\",\n \"features\": [\n \"<string>\"\n ],\n \"height_kind\": {},\n \"name\": \"<string>\",\n \"payload_base64\": \"<string>\",\n \"text\": \"<string>\",\n \"url\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/spatial.snapshot")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fetched_at\": \"<string>\",\n \"licence\": \"<string>\",\n \"source\": {\n \"dataset\": \"<string>\",\n \"provider\": \"<string>\",\n \"url\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"blob\": \"<string>\",\n \"bounds\": [\n 123\n ],\n \"delimiter\": \"<string>\",\n \"features\": [\n \"<string>\"\n ],\n \"height_kind\": {},\n \"name\": \"<string>\",\n \"payload_base64\": \"<string>\",\n \"text\": \"<string>\",\n \"url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/spatial.snapshot")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fetched_at\": \"<string>\",\n \"licence\": \"<string>\",\n \"source\": {\n \"dataset\": \"<string>\",\n \"provider\": \"<string>\",\n \"url\": \"<string>\",\n \"version\": \"<string>\"\n },\n \"blob\": \"<string>\",\n \"bounds\": [\n 123\n ],\n \"delimiter\": \"<string>\",\n \"features\": [\n \"<string>\"\n ],\n \"height_kind\": {},\n \"name\": \"<string>\",\n \"payload_base64\": \"<string>\",\n \"text\": \"<string>\",\n \"url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"derived": {
"key": "<string>",
"kind": "<string>",
"summary": {}
},
"key": "<string>",
"rule": "<string>",
"snapshot": {
"bounds": [
123
],
"connector": "<string>",
"derived": {
"key": "<string>",
"kind": "<string>"
},
"fetched_at": "<string>",
"id": "<string>",
"licence": "<string>",
"name": "<string>",
"payload": "<string>",
"payload_bytes": 123,
"payload_format": "<string>",
"schema_version": "<string>",
"source": {
"dataset": "<string>",
"provider": "<string>",
"url": "<string>",
"version": "<string>"
}
}
}Body
osm.features / osm.features.pbf: the tag filter, an ordered list of rules written key, key=*, key=value or key=a|b. An element is kept when a rule matches its tags; the first that does is named on the feature (@rule). Railways, fences, pipelines, power lines and buildings when left out (the list is osm_features_default in GET /v1/spatial.capabilities)