Skip to main content
POST
Route selection for a new line: least-cost routes and alternatives between two substations on a cost surface from land-use, protected-area, native title and slope layers; easements, areas by land-use class, features crossed, visual exposure, the line's impedance and a TP13 candidate (`ss.power.route.result/1`)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
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, or page it with power_contingency_page). false: always inline. Left out: inline up to an estimated work of 5e6 bus-solves (SS_POWER_PLANNING_SYNC_WORK; N-1 of a 2,000-bus case is about 7e6, an AC OPF of 13,659 buses 9e6), a job above. Above 2e5 (SS_POWER_PLANNING_LIGHT_WORK) a study takes a slot of PW12's heavy lane

network
object

A network (ss.power.network/1), inline: the candidate's buses are checked against it and it answers candidate_network_key; a branch impedance reads its line

network_key
string

A stored network's key

project
string

A project whose document is a network

raster_keys
object

Each class layer's source name to a stored raster's key, in the grid's frame (a land-use raster warped to the grid's UTM zone)

route
object

The route document (ss.power.route/1), inline

route_key
string

A stored route document's key (an earlier answer's documents.route)

terrain_keys
string[]

Terrain rasters' keys (spatial_raster_import): geodetic DEM tiles sampled onto the grid, or a raster in the grid's frame; needed for a slope layer and the exposure

variant
string

The project's variant

vector_keys
object

Each polygon layer's source name to a stored vector document's key (spatial_vector_import: GeoJSON, KML, Shapefile, GeoPackage; geodetic or projected)

Response

study, schema, result_key (BLAKE3 of the result's canonical bytes; blob_uri reads it, report_uri is its certificate, which verify_result runs again), request_key, documents (the route document, the terrain, vector and raster layers, the network, by content key), summary, elapsed_ms, work, vectors {alignments, easements, corridor} (stored lon/lat drawings), candidate_network_key (with a network and a candidate), result_inline, and result: document, grid, cell_metres, endpoints, terrain, layers (each with its role, source key, on-grid key, features and cells, credit, note), cost (TP14's ss.spatial.cost/1), cost_key, routes (rank, cost, stretch, moves, alignment, alignment_lonlat, length_m, geodesic_length_m, easement, land, crossings, exposure, impedance), stopped, corridor, candidate, findings, invented, credits, method, caveat

The response is of type object.