curl --request POST \
--url https://api.eddy.engineer/v1/eda.route \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"document": {},
"a": [
123
],
"at": [
123
],
"b": [
123
],
"component": "<string>",
"components": [
"<string>"
],
"from": "<unknown>",
"grid": 123,
"id": 123,
"ids": [
123
],
"net": "<string>",
"pad": "<string>",
"pads": [
"<string>"
],
"pitch": 123,
"rect": [
123
],
"remove": true,
"rules": {},
"scope": "<string>",
"to": "<unknown>",
"width": 123
}
'import requests
url = "https://api.eddy.engineer/v1/eda.route"
payload = {
"document": {},
"a": [123],
"at": [123],
"b": [123],
"component": "<string>",
"components": ["<string>"],
"from": "<unknown>",
"grid": 123,
"id": 123,
"ids": [123],
"net": "<string>",
"pad": "<string>",
"pads": ["<string>"],
"pitch": 123,
"rect": [123],
"remove": True,
"rules": {},
"scope": "<string>",
"to": "<unknown>",
"width": 123
}
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({
document: {},
a: [123],
at: [123],
b: [123],
component: '<string>',
components: ['<string>'],
from: '<unknown>',
grid: 123,
id: 123,
ids: [123],
net: '<string>',
pad: '<string>',
pads: ['<string>'],
pitch: 123,
rect: [123],
remove: true,
rules: {},
scope: '<string>',
to: '<unknown>',
width: 123
})
};
fetch('https://api.eddy.engineer/v1/eda.route', 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/eda.route",
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([
'document' => [
],
'a' => [
123
],
'at' => [
123
],
'b' => [
123
],
'component' => '<string>',
'components' => [
'<string>'
],
'from' => '<unknown>',
'grid' => 123,
'id' => 123,
'ids' => [
123
],
'net' => '<string>',
'pad' => '<string>',
'pads' => [
'<string>'
],
'pitch' => 123,
'rect' => [
123
],
'remove' => true,
'rules' => [
],
'scope' => '<string>',
'to' => '<unknown>',
'width' => 123
]),
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/eda.route"
payload := strings.NewReader("{\n \"document\": {},\n \"a\": [\n 123\n ],\n \"at\": [\n 123\n ],\n \"b\": [\n 123\n ],\n \"component\": \"<string>\",\n \"components\": [\n \"<string>\"\n ],\n \"from\": \"<unknown>\",\n \"grid\": 123,\n \"id\": 123,\n \"ids\": [\n 123\n ],\n \"net\": \"<string>\",\n \"pad\": \"<string>\",\n \"pads\": [\n \"<string>\"\n ],\n \"pitch\": 123,\n \"rect\": [\n 123\n ],\n \"remove\": true,\n \"rules\": {},\n \"scope\": \"<string>\",\n \"to\": \"<unknown>\",\n \"width\": 123\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/eda.route")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"document\": {},\n \"a\": [\n 123\n ],\n \"at\": [\n 123\n ],\n \"b\": [\n 123\n ],\n \"component\": \"<string>\",\n \"components\": [\n \"<string>\"\n ],\n \"from\": \"<unknown>\",\n \"grid\": 123,\n \"id\": 123,\n \"ids\": [\n 123\n ],\n \"net\": \"<string>\",\n \"pad\": \"<string>\",\n \"pads\": [\n \"<string>\"\n ],\n \"pitch\": 123,\n \"rect\": [\n 123\n ],\n \"remove\": true,\n \"rules\": {},\n \"scope\": \"<string>\",\n \"to\": \"<unknown>\",\n \"width\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/eda.route")
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 \"document\": {},\n \"a\": [\n 123\n ],\n \"at\": [\n 123\n ],\n \"b\": [\n 123\n ],\n \"component\": \"<string>\",\n \"components\": [\n \"<string>\"\n ],\n \"from\": \"<unknown>\",\n \"grid\": 123,\n \"id\": 123,\n \"ids\": [\n 123\n ],\n \"net\": \"<string>\",\n \"pad\": \"<string>\",\n \"pads\": [\n \"<string>\"\n ],\n \"pitch\": 123,\n \"rect\": [\n 123\n ],\n \"remove\": true,\n \"rules\": {},\n \"scope\": \"<string>\",\n \"to\": \"<unknown>\",\n \"width\": 123\n}"
response = http.request(request)
puts response.read_body{
"document": {},
"document_hash": "<string>",
"result": {},
"route_key": "<string>",
"vocabulary": {}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}The routing tier: interactive step, un-route, gloss / retrace, fanout, stitching, teardrops, break / drag / slice / reroute (E7.6)
One call per routing action over the document (+ optional rules). op: step routes from an endpoint (a pad DESIGNATOR-PIN or [x, y]) to another on a layer under a mode — ignore (the elbow: straight then 45°; corner 90 = H then V; corner any = direct), walkaround (A* on a rule-derived grid around every obstacle of another net; 8-connected, octile heuristic, turn penalty; deterministic and 45°-clean), stop (the elbow truncated before the first obstacle, naming it), hug (walkaround that keeps close to obstacles); width from the applicable width rule (or an explicit / favourite width), via stack from the via_style rule; the result carries the segments (also appended to the returned document), length, blocked + reason, and the collisions an ignore-mode elbow crosses. unroute (all | net | connection [two pads] | component), gloss / retrace (merge collinear same-layer same-net tracks that share an end, drop zero-length stubs; retrace re-applies the rule width), fanout (SMD pads → track + via outward under the clearance; all | signal | power | net | component | selected | pad | connection), stitch / unstitch (a via grid on a net inside a rect — the board by default, within the net’s pours when it has any — wherever the via clears every other-net object; vias carry group stitch:<net>), teardrops (net-carrying copper regions where a track lands on a pad or via; remove), break (split a track at a point), drag_end (move one end; reports a collision), slice (split every track a line crosses), reroute (an open chain of tracks re-routed under a mode; kept when blocked). Typed refusals name their unit: push (push-and-shove), multi, diffpair and arc corners → E7.10; room scopes and internal layers → E7.9. route_key addresses (document, rules, op); document_hash is the content address of the returned document.
curl --request POST \
--url https://api.eddy.engineer/v1/eda.route \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"document": {},
"a": [
123
],
"at": [
123
],
"b": [
123
],
"component": "<string>",
"components": [
"<string>"
],
"from": "<unknown>",
"grid": 123,
"id": 123,
"ids": [
123
],
"net": "<string>",
"pad": "<string>",
"pads": [
"<string>"
],
"pitch": 123,
"rect": [
123
],
"remove": true,
"rules": {},
"scope": "<string>",
"to": "<unknown>",
"width": 123
}
'import requests
url = "https://api.eddy.engineer/v1/eda.route"
payload = {
"document": {},
"a": [123],
"at": [123],
"b": [123],
"component": "<string>",
"components": ["<string>"],
"from": "<unknown>",
"grid": 123,
"id": 123,
"ids": [123],
"net": "<string>",
"pad": "<string>",
"pads": ["<string>"],
"pitch": 123,
"rect": [123],
"remove": True,
"rules": {},
"scope": "<string>",
"to": "<unknown>",
"width": 123
}
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({
document: {},
a: [123],
at: [123],
b: [123],
component: '<string>',
components: ['<string>'],
from: '<unknown>',
grid: 123,
id: 123,
ids: [123],
net: '<string>',
pad: '<string>',
pads: ['<string>'],
pitch: 123,
rect: [123],
remove: true,
rules: {},
scope: '<string>',
to: '<unknown>',
width: 123
})
};
fetch('https://api.eddy.engineer/v1/eda.route', 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/eda.route",
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([
'document' => [
],
'a' => [
123
],
'at' => [
123
],
'b' => [
123
],
'component' => '<string>',
'components' => [
'<string>'
],
'from' => '<unknown>',
'grid' => 123,
'id' => 123,
'ids' => [
123
],
'net' => '<string>',
'pad' => '<string>',
'pads' => [
'<string>'
],
'pitch' => 123,
'rect' => [
123
],
'remove' => true,
'rules' => [
],
'scope' => '<string>',
'to' => '<unknown>',
'width' => 123
]),
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/eda.route"
payload := strings.NewReader("{\n \"document\": {},\n \"a\": [\n 123\n ],\n \"at\": [\n 123\n ],\n \"b\": [\n 123\n ],\n \"component\": \"<string>\",\n \"components\": [\n \"<string>\"\n ],\n \"from\": \"<unknown>\",\n \"grid\": 123,\n \"id\": 123,\n \"ids\": [\n 123\n ],\n \"net\": \"<string>\",\n \"pad\": \"<string>\",\n \"pads\": [\n \"<string>\"\n ],\n \"pitch\": 123,\n \"rect\": [\n 123\n ],\n \"remove\": true,\n \"rules\": {},\n \"scope\": \"<string>\",\n \"to\": \"<unknown>\",\n \"width\": 123\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/eda.route")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"document\": {},\n \"a\": [\n 123\n ],\n \"at\": [\n 123\n ],\n \"b\": [\n 123\n ],\n \"component\": \"<string>\",\n \"components\": [\n \"<string>\"\n ],\n \"from\": \"<unknown>\",\n \"grid\": 123,\n \"id\": 123,\n \"ids\": [\n 123\n ],\n \"net\": \"<string>\",\n \"pad\": \"<string>\",\n \"pads\": [\n \"<string>\"\n ],\n \"pitch\": 123,\n \"rect\": [\n 123\n ],\n \"remove\": true,\n \"rules\": {},\n \"scope\": \"<string>\",\n \"to\": \"<unknown>\",\n \"width\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/eda.route")
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 \"document\": {},\n \"a\": [\n 123\n ],\n \"at\": [\n 123\n ],\n \"b\": [\n 123\n ],\n \"component\": \"<string>\",\n \"components\": [\n \"<string>\"\n ],\n \"from\": \"<unknown>\",\n \"grid\": 123,\n \"id\": 123,\n \"ids\": [\n 123\n ],\n \"net\": \"<string>\",\n \"pad\": \"<string>\",\n \"pads\": [\n \"<string>\"\n ],\n \"pitch\": 123,\n \"rect\": [\n 123\n ],\n \"remove\": true,\n \"rules\": {},\n \"scope\": \"<string>\",\n \"to\": \"<unknown>\",\n \"width\": 123\n}"
response = http.request(request)
puts response.read_body{
"document": {},
"document_hash": "<string>",
"result": {},
"route_key": "<string>",
"vocabulary": {}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
Response
The routed document and the op's result
step: {segments[{x1,y1,x2,y2,layer,w}], width, via{d,drill}, net, length, blocked, reason, collisions, track_ids}; unroute: {tracks_removed, vias_removed}; gloss/retrace: {merged, removed, rewidth}; fanout: {placed[], skipped[]}; stitch: {placed, via_ids}; teardrops: {added | removed}; break: {at, new_id}; drag_end: {collision}; slice: {cut, tracks[]}; reroute: {track_ids, removed, kept?}