curl --request POST \
--url https://api.eddy.engineer/v1/gp.glare \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"spec": {},
"async": true,
"frame": {},
"layout_key": "<string>",
"on": "<string>",
"state": "<string>",
"tables": [
"<string>"
],
"terrain_key": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/gp.glare"
payload = {
"spec": {},
"async": True,
"frame": {},
"layout_key": "<string>",
"on": "<string>",
"state": "<string>",
"tables": ["<string>"],
"terrain_key": "<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({
spec: {},
async: true,
frame: {},
layout_key: '<string>',
on: '<string>',
state: '<string>',
tables: ['<string>'],
terrain_key: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/gp.glare', 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.glare",
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,
'frame' => [
],
'layout_key' => '<string>',
'on' => '<string>',
'state' => '<string>',
'tables' => [
'<string>'
],
'terrain_key' => '<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/gp.glare"
payload := strings.NewReader("{\n \"spec\": {},\n \"async\": true,\n \"frame\": {},\n \"layout_key\": \"<string>\",\n \"on\": \"<string>\",\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"terrain_key\": \"<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/gp.glare")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"spec\": {},\n \"async\": true,\n \"frame\": {},\n \"layout_key\": \"<string>\",\n \"on\": \"<string>\",\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"terrain_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/gp.glare")
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 \"frame\": {},\n \"layout_key\": \"<string>\",\n \"on\": \"<string>\",\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"terrain_key\": \"<string>\"\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>"
}
}Glint and glare screening of a PV plant at dwellings, roads, rail and aviation receptors (GP9)
Runs GP9 (spec, ss.gp.glare.study/1): the rows of the layout (layout_key, grouped by inverter block) or rows stated in the study, fixed tilt or single-axis trackers with backtracking, GP3’s SPA sun path over the year at the stated step; specular reflection within the sun’s radius and a stated spread, the cone test exact on each row’s collector rectangle; terrain blocking (GP3’s cast shadow at the row, SP2’s line of sight to the receptor) on the terrain (the layout’s unless terrain_key names another; flat ground without one) and row blocking; the block search (R3) that equals every row at every step. Receptors: points (dwellings, towers), roads and railways sampled along their lines with an eyeline, approach paths. NSW’s Large-Scale Solar Energy Guideline (v1.1, 2024, CC BY 4.0) is built in and cited ({builtin: nsw-lssg-2024}); any other guideline is a value table a person adopted (tables); a road, railway or approach that states no eyeline takes 50 degrees either side of travel (Pager Power 2021, cited), overridable by geometry.eyeline_half_angle_deg or per receptor. frame: the frame of stated rows with neither a layout nor a terrain. The sun path is a part (sun). Heavy by its own work (sun steps x (rows + receptor points)): a year at one-minute steps on a 10,000-row plant is about 30 s optimised, a job above the threshold. The crate’s codes (422): GP_GLARE, GP_GLARE_RECEPTOR, GP_GLARE_MOUNTING, GP_GLARE_FRAME, GP_GLARE_TERRAIN, GP_GLARE_SUN, UNEVALUABLE, SCHEMA. 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_VALUE_TABLE (422: a named table missing, not adopted, not in force or unreadable, with MEP8’s code), 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.glare \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"spec": {},
"async": true,
"frame": {},
"layout_key": "<string>",
"on": "<string>",
"state": "<string>",
"tables": [
"<string>"
],
"terrain_key": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/gp.glare"
payload = {
"spec": {},
"async": True,
"frame": {},
"layout_key": "<string>",
"on": "<string>",
"state": "<string>",
"tables": ["<string>"],
"terrain_key": "<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({
spec: {},
async: true,
frame: {},
layout_key: '<string>',
on: '<string>',
state: '<string>',
tables: ['<string>'],
terrain_key: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/gp.glare', 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.glare",
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,
'frame' => [
],
'layout_key' => '<string>',
'on' => '<string>',
'state' => '<string>',
'tables' => [
'<string>'
],
'terrain_key' => '<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/gp.glare"
payload := strings.NewReader("{\n \"spec\": {},\n \"async\": true,\n \"frame\": {},\n \"layout_key\": \"<string>\",\n \"on\": \"<string>\",\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"terrain_key\": \"<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/gp.glare")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"spec\": {},\n \"async\": true,\n \"frame\": {},\n \"layout_key\": \"<string>\",\n \"on\": \"<string>\",\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"terrain_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/gp.glare")
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 \"frame\": {},\n \"layout_key\": \"<string>\",\n \"on\": \"<string>\",\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"terrain_key\": \"<string>\"\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
GP9's glare study (ss.gp.glare.study/1): schema_version, id, name, reflectors ({from: layout, blocks} | {from: rows, rows, pitch_m}), mounting ({kind: fixed, tilt_deg, facing_azimuth_deg} | {kind: tracker, backtrack, gcr, hardware}), axis_height_m, receptors, sun ({year, utc_offset_h, step_s, delta_t, latitude_deg, longitude_deg}), geometry ({max_distance_m, terrain_blocking, row_blocking, spread_deg, curvature, ...}), criteria ([{builtin: nsw-lssg-2024} | {table: id}]). Read strictly by the crate's own type: an unknown member or value 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
Ids of value tables a person adopted (ss.mep.values/1: mep_values_import then mep_values_adopt), at most 8; resolved with MEP8's lookup in the caller's namespace, adopted and in force for state on on. A named table that cannot be read refuses the study (GP_VALUE_TABLE). Tables are never given inline
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.