curl --request POST \
--url https://api.eddy.engineer/v1/gp.drawings \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"spec": {},
"async": true,
"titles": {}
}
'import requests
url = "https://api.eddy.engineer/v1/gp.drawings"
payload = {
"spec": {},
"async": True,
"titles": {}
}
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({spec: {}, async: true, titles: {}})
};
fetch('https://api.eddy.engineer/v1/gp.drawings', 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/gp.drawings",
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([
'spec' => [
],
'async' => true,
'titles' => [
]
]),
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/gp.drawings"
payload := strings.NewReader("{\n \"spec\": {},\n \"async\": true,\n \"titles\": {}\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/gp.drawings")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"spec\": {},\n \"async\": true,\n \"titles\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/gp.drawings")
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 \"spec\": {},\n \"async\": true,\n \"titles\": {}\n}"
response = http.request(request)
puts response.read_body{}{
"events": "/v1/jobs/job-000001-…/events",
"job_id": "<string>",
"phase": "queued",
"poll": "/v1/jobs/job-000001-…"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}The printable drawing set of a plant: layout sheets, EIS figures, schedules, KML, GeoPackage and GPX stake-out (GP22)
Lays out GP22’s drawing set from the plant’s stored documents, each named in spec by the key the route that made it answered: the PV layout (pv_layout_key), GP15’s wind layout (wind_layout_key: gp_siting’s layout part), GP16’s BESS pad, GP18’s roads study, GP17’s collector, GP12’s noise with its level raster, GP13’s flicker with its hours raster, GP14’s visual assessment with its three rasters, GP8’s grading (its strips and pads on the block sheets, an earthworks figure and tables) and GP9’s glare (a figure with every receptor and its glare minutes, the NSW verdict table), site layers (vector documents with a role: exclusion, setback with distance_m, feature), the boundary and buildable area. Sheets (SVG on PW14’s paper and title block) at a standard scale with a scale bar and a north arrow turned to true north by the meridian convergence at each plan’s centre (GP7.b), each sheet stating it; each sheet also as PDF (the engine’s PDF writer, the same drawing), and every sheet in one PDF (S-00-sheets.pdf); a PV block whose rows cannot be read whole on the paper drawn in parts at the smallest standard scale where they can (row ids and piles), with match lines naming the sheets beyond them (split_blocks: false draws every block whole); with terrain_key (a terrain raster), the ground’s contours on every plan sheet at contour_interval_m (the finest of the engine’s intervals giving at most 40 levels over the relief where left out, said on the sheets), every fifth lettered; the schedules (HTML, PDF, document); the exports (styled KML, a GeoPackage a layer, GPX and CSV stake-out); an index. The result is the manifest (ss.gp.drawingset/1: every file by BLAKE3); the zip and every file are parts (by file name). titles are printed as given; no date is read from a clock. A grading (grading_key) is drawn only with the layout it belongs to: the layout it graded, or one whose rows carry it (the graded layout gp_grading answered); another is refused GP_GRADING_NOT_THIS_LAYOUT (422), naming both. The crate’s codes (422): GP_DRAWING_INVALID (a frame with no EPSG code, a layer id that is not a table name, a document not in the plant’s frame, a writer’s refusal), GP_REPORT_INVALID (titles, paper). Refused by name: GP_REQUEST (400: the body, an unknown member or one the study does not take, a document given inline and by key, a key that is not b3: and 64 hex digits), GP_SPEC (400: a spec or member that does not read, by name), GP_DOCUMENT_INVALID (400: an inline document the crate refuses), GP_DOCUMENT_NOT_FOUND (404: a key that names no stored document of the kind), GP_BUSY (429: the heavy lane is full; Retry-After: 5). What cannot be worked out inside the study (a missing value-table entry, a criterion no table fills) is on the result as the crate states it (unevaluable, findings), with status 200. A design and screening aid: a person reviews it before it is relied on.
curl --request POST \
--url https://api.eddy.engineer/v1/gp.drawings \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"spec": {},
"async": true,
"titles": {}
}
'import requests
url = "https://api.eddy.engineer/v1/gp.drawings"
payload = {
"spec": {},
"async": True,
"titles": {}
}
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({spec: {}, async: true, titles: {}})
};
fetch('https://api.eddy.engineer/v1/gp.drawings', 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/gp.drawings",
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([
'spec' => [
],
'async' => true,
'titles' => [
]
]),
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/gp.drawings"
payload := strings.NewReader("{\n \"spec\": {},\n \"async\": true,\n \"titles\": {}\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/gp.drawings")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"spec\": {},\n \"async\": true,\n \"titles\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/gp.drawings")
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 \"spec\": {},\n \"async\": true,\n \"titles\": {}\n}"
response = http.request(request)
puts response.read_body{}{
"events": "/v1/jobs/job-000001-…/events",
"job_id": "<string>",
"phase": "queued",
"poll": "/v1/jobs/job-000001-…"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
{id, name, frame (the PV layout's where left out), height_datum, boundary, buildable, layers: [{id, name, role, distance_m, key}], pv_layout_key, wind_layout_key, bess_layout_key, roads_study_key, collector_key, noise_key, noise_grid_key, flicker_key, flicker_hours_key, visual_key, ztv_hub_key, ztv_tip_key, bands_key, grading_key, glare_key, terrain_key, contour_interval_m, split_blocks}: every document by its content key (results by result_key, rasters and layers by their spatial store key; terrain_key a terrain raster whose contours are drawn, contour_interval_m in metres, split_blocks true where left out). Read strictly: an unknown member is GP_SPEC (400), naming it
true: run as a job and answer 202 with job_id, poll and events; the finished job's result is this route's body without the inline result (read result_key's blob). false: always inline (a heavy study takes a slot of the lane, or is refused GP_BUSY 429 when the lane is full). Left out: inline up to the study's job threshold (the answer's work), a job above
Response
calc, schema, result_key (BLAKE3 of the crate's canonical bytes; blob_uri reads it, report_uri is its certificate, which verify_result runs again), request_key, documents (every document read, by role and key), tables (each table read by id, item, revision and content key; never its entries), tables_on, parts (documents made with the result, each by key), layers (rasters and vectors stored in the spatial engine, read by /v1/spatial.raster/{key} and /v1/spatial.vector/{key}), networks (power networks stored for /v1/power.*), summary, lane (light | heavy | job), work (estimate, unit, light_up_to, job_above), result_bytes, result_inline and result
The response is of type object.