Skip to main content
POST
Glint and glare screening of a PV plant at dwellings, roads, rail and aviation receptors (GP9)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
spec
object
required

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

async
boolean

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

frame
object

The frame of rows stated in the study when there is neither a layout nor a terrain (an ss_spatial frame, e.g. {kind: projected, crs: ...}); a local plane, y to true north, where left out

layout_key
string

A stored PV layout (gp_layout's, gp_layout_edit's or gp_grading's result_key / layout_key); its equipment and terrain are read by the keys it names

on
string

The date (YYYY-MM-DD) the tables must be in force on; today where left out

state
string

The state the tables must be in force for (NSW, VIC, ...)

tables
string[]

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

terrain_key
string

A terrain raster in the spatial store (spatial_raster_import): a content key, b3: and 64 lowercase hex digits

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.