curl --request POST \
--url https://api.eddy.engineer/v1/earthing.transfer \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"async": true,
"fault_case": "<string>",
"on": "<string>",
"power_network_key": "<string>",
"services": [
{
"key": "<string>",
"kind": "<string>"
}
],
"settings": {},
"soil": {},
"soil_key": "<string>",
"state": "<string>",
"system": {},
"system_key": "<string>",
"tables": [
"<string>"
]
}
'import requests
url = "https://api.eddy.engineer/v1/earthing.transfer"
payload = {
"async": True,
"fault_case": "<string>",
"on": "<string>",
"power_network_key": "<string>",
"services": [
{
"key": "<string>",
"kind": "<string>"
}
],
"settings": {},
"soil": {},
"soil_key": "<string>",
"state": "<string>",
"system": {},
"system_key": "<string>",
"tables": ["<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({
async: true,
fault_case: '<string>',
on: '<string>',
power_network_key: '<string>',
services: [{key: '<string>', kind: '<string>'}],
settings: {},
soil: {},
soil_key: '<string>',
state: '<string>',
system: {},
system_key: '<string>',
tables: ['<string>']
})
};
fetch('https://api.eddy.engineer/v1/earthing.transfer', 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/earthing.transfer",
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([
'async' => true,
'fault_case' => '<string>',
'on' => '<string>',
'power_network_key' => '<string>',
'services' => [
[
'key' => '<string>',
'kind' => '<string>'
]
],
'settings' => [
],
'soil' => [
],
'soil_key' => '<string>',
'state' => '<string>',
'system' => [
],
'system_key' => '<string>',
'tables' => [
'<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/earthing.transfer"
payload := strings.NewReader("{\n \"async\": true,\n \"fault_case\": \"<string>\",\n \"on\": \"<string>\",\n \"power_network_key\": \"<string>\",\n \"services\": [\n {\n \"key\": \"<string>\",\n \"kind\": \"<string>\"\n }\n ],\n \"settings\": {},\n \"soil\": {},\n \"soil_key\": \"<string>\",\n \"state\": \"<string>\",\n \"system\": {},\n \"system_key\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ]\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/earthing.transfer")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"async\": true,\n \"fault_case\": \"<string>\",\n \"on\": \"<string>\",\n \"power_network_key\": \"<string>\",\n \"services\": [\n {\n \"key\": \"<string>\",\n \"kind\": \"<string>\"\n }\n ],\n \"settings\": {},\n \"soil\": {},\n \"soil_key\": \"<string>\",\n \"state\": \"<string>\",\n \"system\": {},\n \"system_key\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/earthing.transfer")
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 \"async\": true,\n \"fault_case\": \"<string>\",\n \"on\": \"<string>\",\n \"power_network_key\": \"<string>\",\n \"services\": [\n {\n \"key\": \"<string>\",\n \"kind\": \"<string>\"\n }\n ],\n \"settings\": {},\n \"soil\": {},\n \"soil_key\": \"<string>\",\n \"state\": \"<string>\",\n \"system\": {},\n \"system_key\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ]\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>"
}
}Transferred potentials and hazard zones: fences, pipelines, rails, sheaths and telecom plant near the grid, EPR contours and the services they cross (EG10)
Long conductors (from the system’s extensions.transfer and settings.conductors; the system’s fences from their own post data) as lines with series impedance (none, entered or Carson’s) and leakage (a coating, per metre, or posts as rods) driven by the grid’s boundary-element soil potential, with bonds, earthing points, insulating joints and rings; a bonded fence of no impedance drawn into the grid’s solution. EPR and transferred-potential rasters with closed bands at the levels entered (none ship: zone levels are paid or restricted values), stored in the spatial engine (layers); every service of the vector layers given (services) cut against every zone, each crossing a finding with its length and worst touch. Answers ss.earthing.result/1 with the detail under extensions.transfer. Refused by name: EARTHING_REQUEST (400: the body, a member the calculation does not take, a document missing or given twice, a key that is not b3: and 64 hex digits), EARTHING_SETTINGS (400: a setting that does not read, by name), EARTHING_DOCUMENT_INVALID (400: a document that does not read), EARTHING_DOCUMENT_NOT_FOUND (404: a key that names no stored document of the kind, or a soil model the system names that is not stored), EARTHING_POWER_NETWORK_NOT_FOUND (404: the PW network named is not stored), EARTHING_VALUE_TABLE (422: a named table that cannot be read, with MEP8’s code), EARTHING_BUSY (429: the heavy lane is full; retry after Retry-After, or send async: true). What cannot be worked out inside the calculation (a missing value table entry, a split that cannot be worked, a ladder that does not settle) is on the result as the crate states it, typed and named (status: unevaluable, unevaluable, findings), with status 200. The result is a design aid: a person reviews it before it is relied on.
curl --request POST \
--url https://api.eddy.engineer/v1/earthing.transfer \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"async": true,
"fault_case": "<string>",
"on": "<string>",
"power_network_key": "<string>",
"services": [
{
"key": "<string>",
"kind": "<string>"
}
],
"settings": {},
"soil": {},
"soil_key": "<string>",
"state": "<string>",
"system": {},
"system_key": "<string>",
"tables": [
"<string>"
]
}
'import requests
url = "https://api.eddy.engineer/v1/earthing.transfer"
payload = {
"async": True,
"fault_case": "<string>",
"on": "<string>",
"power_network_key": "<string>",
"services": [
{
"key": "<string>",
"kind": "<string>"
}
],
"settings": {},
"soil": {},
"soil_key": "<string>",
"state": "<string>",
"system": {},
"system_key": "<string>",
"tables": ["<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({
async: true,
fault_case: '<string>',
on: '<string>',
power_network_key: '<string>',
services: [{key: '<string>', kind: '<string>'}],
settings: {},
soil: {},
soil_key: '<string>',
state: '<string>',
system: {},
system_key: '<string>',
tables: ['<string>']
})
};
fetch('https://api.eddy.engineer/v1/earthing.transfer', 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/earthing.transfer",
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([
'async' => true,
'fault_case' => '<string>',
'on' => '<string>',
'power_network_key' => '<string>',
'services' => [
[
'key' => '<string>',
'kind' => '<string>'
]
],
'settings' => [
],
'soil' => [
],
'soil_key' => '<string>',
'state' => '<string>',
'system' => [
],
'system_key' => '<string>',
'tables' => [
'<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/earthing.transfer"
payload := strings.NewReader("{\n \"async\": true,\n \"fault_case\": \"<string>\",\n \"on\": \"<string>\",\n \"power_network_key\": \"<string>\",\n \"services\": [\n {\n \"key\": \"<string>\",\n \"kind\": \"<string>\"\n }\n ],\n \"settings\": {},\n \"soil\": {},\n \"soil_key\": \"<string>\",\n \"state\": \"<string>\",\n \"system\": {},\n \"system_key\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ]\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/earthing.transfer")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"async\": true,\n \"fault_case\": \"<string>\",\n \"on\": \"<string>\",\n \"power_network_key\": \"<string>\",\n \"services\": [\n {\n \"key\": \"<string>\",\n \"kind\": \"<string>\"\n }\n ],\n \"settings\": {},\n \"soil\": {},\n \"soil_key\": \"<string>\",\n \"state\": \"<string>\",\n \"system\": {},\n \"system_key\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/earthing.transfer")
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 \"async\": true,\n \"fault_case\": \"<string>\",\n \"on\": \"<string>\",\n \"power_network_key\": \"<string>\",\n \"services\": [\n {\n \"key\": \"<string>\",\n \"kind\": \"<string>\"\n }\n ],\n \"settings\": {},\n \"soil\": {},\n \"soil_key\": \"<string>\",\n \"state\": \"<string>\",\n \"system\": {},\n \"system_key\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ]\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
bem: the boundary-element solver (EG5, EG6): tolerance (0.005: the ladder stops when Rg moves less than 0.5 %), max_rungs (12), max_segments (10,000), first_segment_length_m, min_segment_radii (4), grade_free_ends (true), leave_out_unsupported (false: plates and foundations refused), kernel (auto | images | hankel_key201 | hankel_wer201, layered soil), and the drive where there is no fault_case: current_a or potential_v; split: the fault current split (EG8): frequency_hz (50), earth_resistivity_ohm_m (the deepest layer's), fault (line_to_earth | line_to_line_to_earth); frequency_hz (50), conductors (long conductors, as ss.earthing.transfer/1 writes them), fences (true), join_bonded_fences (true), epr_levels_v, transfer_levels_v, raster_step_m (5), extent ([[x, y], [x, y]]), margin_m (5), max_nodes, max_reach_m (20,000), reach_m (1), max_section_m (10), min_section_m (0.25), tolerance (0.01), coupling_share (0.05). Every member is optional unless said; an unknown one is refused (EARTHING_SETTINGS)
Response
calc, schema, result_key (BLAKE3 of the result's canonical bytes: the crate's own; blob_uri reads it, report_uri is its certificate, which verify_result runs again), request_key, inputs (every document by key), fault_case, tables (each table read, by id, item, revision and content key: its citation; never its entries), tables_on, upstream, documents (earthing documents made with the result, by key), layers (rasters and vectors the result names, stored in the spatial engine: /v1/spatial.raster/{key}, /v1/spatial.vector/{key}), summary, lane (light | heavy | job), result_inline and result: the result document
The response is of type object.