curl --request POST \
--url https://api.eddy.engineer/v1/spatial.plan3d \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"goal": [
123
],
"spec": {
"bounds": [
123
],
"cell_m": 123,
"layer_m": 123,
"max_alt": 123,
"min_alt": 123,
"max_cells": 123,
"min_clearance_m": 123
},
"start": [
123
],
"terrain": "<string>",
"volumes": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/spatial.plan3d"
payload = {
"goal": [123],
"spec": {
"bounds": [123],
"cell_m": 123,
"layer_m": 123,
"max_alt": 123,
"min_alt": 123,
"max_cells": 123,
"min_clearance_m": 123
},
"start": [123],
"terrain": "<string>",
"volumes": "<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({
goal: [123],
spec: {
bounds: [123],
cell_m: 123,
layer_m: 123,
max_alt: 123,
min_alt: 123,
max_cells: 123,
min_clearance_m: 123
},
start: [123],
terrain: '<string>',
volumes: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/spatial.plan3d', 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/spatial.plan3d",
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([
'goal' => [
123
],
'spec' => [
'bounds' => [
123
],
'cell_m' => 123,
'layer_m' => 123,
'max_alt' => 123,
'min_alt' => 123,
'max_cells' => 123,
'min_clearance_m' => 123
],
'start' => [
123
],
'terrain' => '<string>',
'volumes' => '<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/spatial.plan3d"
payload := strings.NewReader("{\n \"goal\": [\n 123\n ],\n \"spec\": {\n \"bounds\": [\n 123\n ],\n \"cell_m\": 123,\n \"layer_m\": 123,\n \"max_alt\": 123,\n \"min_alt\": 123,\n \"max_cells\": 123,\n \"min_clearance_m\": 123\n },\n \"start\": [\n 123\n ],\n \"terrain\": \"<string>\",\n \"volumes\": \"<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/spatial.plan3d")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"goal\": [\n 123\n ],\n \"spec\": {\n \"bounds\": [\n 123\n ],\n \"cell_m\": 123,\n \"layer_m\": 123,\n \"max_alt\": 123,\n \"min_alt\": 123,\n \"max_cells\": 123,\n \"min_clearance_m\": 123\n },\n \"start\": [\n 123\n ],\n \"terrain\": \"<string>\",\n \"volumes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/spatial.plan3d")
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 \"goal\": [\n 123\n ],\n \"spec\": {\n \"bounds\": [\n 123\n ],\n \"cell_m\": 123,\n \"layer_m\": 123,\n \"max_alt\": 123,\n \"min_alt\": 123,\n \"max_cells\": 123,\n \"min_clearance_m\": 123\n },\n \"start\": [\n 123\n ],\n \"terrain\": \"<string>\",\n \"volumes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"blocked_cells": 123,
"cells": [
123
],
"expanded": 123,
"geometry": {},
"length_m": 123,
"method": "<string>",
"snapshot": {},
"spec": {
"bounds": [
123
],
"cell_m": 123,
"layer_m": 123,
"max_alt": 123,
"min_alt": 123,
"max_cells": 123,
"min_clearance_m": 123
},
"terrain": "<string>",
"volumes_key": "<string>",
"waypoints": [
[
123
]
]
}A 3D path above the terrain and around the volumes (SP7)
A* on a 26-connected grid of cells in a local ENU plane about the search box (spec.bounds west, south, east, north degrees; cell_m horizontally, layer_m in altitude between min_alt and max_alt, ellipsoidal metres), the metre distance as cost and the straight distance as the admissible heuristic — or, SP7.b, spec.algorithm = rrt_star with spec.rrt : a deterministic RRT* (an own sampler, the grid’s blocked cells as the collision model, the cheapest parent and rewiring), an anytime answer never claimed optimal, carrying rrt_nodes / rrt_iterations. spec.kinematics (SP7.b) bounds every leg’s climb and the heading change between legs (A* carries the last horizontal heading in its state; RRT* checks each extension); the answer reports the steepest climb and sharpest turn it contains. A cell is blocked when it is nearer the ground than min_clearance_m (needs terrain, an SP2 raster — HEIGHT_NO_TERRAIN without it), inside a keep-out volume, or outside every keep-in volume (volumes, an SP4 document; AGL bounds need the terrain). Start and goal are [lat°, lon°, h] and snap to cells; a blocked start or goal → PLAN_BLOCKED, no path → PLAN_UNREACHABLE, more than max_cells cells → PLAN. Answers the waypoints ([lon, lat, h]) as a LineString, the length, the grid, the cells expanded and blocked, the spec, the terrain’s hash and the volumes’ key and snapshot. RRT* and kinematic constraints are SP7.b.
curl --request POST \
--url https://api.eddy.engineer/v1/spatial.plan3d \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"goal": [
123
],
"spec": {
"bounds": [
123
],
"cell_m": 123,
"layer_m": 123,
"max_alt": 123,
"min_alt": 123,
"max_cells": 123,
"min_clearance_m": 123
},
"start": [
123
],
"terrain": "<string>",
"volumes": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/spatial.plan3d"
payload = {
"goal": [123],
"spec": {
"bounds": [123],
"cell_m": 123,
"layer_m": 123,
"max_alt": 123,
"min_alt": 123,
"max_cells": 123,
"min_clearance_m": 123
},
"start": [123],
"terrain": "<string>",
"volumes": "<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({
goal: [123],
spec: {
bounds: [123],
cell_m: 123,
layer_m: 123,
max_alt: 123,
min_alt: 123,
max_cells: 123,
min_clearance_m: 123
},
start: [123],
terrain: '<string>',
volumes: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/spatial.plan3d', 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/spatial.plan3d",
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([
'goal' => [
123
],
'spec' => [
'bounds' => [
123
],
'cell_m' => 123,
'layer_m' => 123,
'max_alt' => 123,
'min_alt' => 123,
'max_cells' => 123,
'min_clearance_m' => 123
],
'start' => [
123
],
'terrain' => '<string>',
'volumes' => '<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/spatial.plan3d"
payload := strings.NewReader("{\n \"goal\": [\n 123\n ],\n \"spec\": {\n \"bounds\": [\n 123\n ],\n \"cell_m\": 123,\n \"layer_m\": 123,\n \"max_alt\": 123,\n \"min_alt\": 123,\n \"max_cells\": 123,\n \"min_clearance_m\": 123\n },\n \"start\": [\n 123\n ],\n \"terrain\": \"<string>\",\n \"volumes\": \"<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/spatial.plan3d")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"goal\": [\n 123\n ],\n \"spec\": {\n \"bounds\": [\n 123\n ],\n \"cell_m\": 123,\n \"layer_m\": 123,\n \"max_alt\": 123,\n \"min_alt\": 123,\n \"max_cells\": 123,\n \"min_clearance_m\": 123\n },\n \"start\": [\n 123\n ],\n \"terrain\": \"<string>\",\n \"volumes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/spatial.plan3d")
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 \"goal\": [\n 123\n ],\n \"spec\": {\n \"bounds\": [\n 123\n ],\n \"cell_m\": 123,\n \"layer_m\": 123,\n \"max_alt\": 123,\n \"min_alt\": 123,\n \"max_cells\": 123,\n \"min_clearance_m\": 123\n },\n \"start\": [\n 123\n ],\n \"terrain\": \"<string>\",\n \"volumes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"blocked_cells": 123,
"cells": [
123
],
"expanded": 123,
"geometry": {},
"length_m": 123,
"method": "<string>",
"snapshot": {},
"spec": {
"bounds": [
123
],
"cell_m": 123,
"layer_m": 123,
"max_alt": 123,
"min_alt": 123,
"max_cells": 123,
"min_clearance_m": 123
},
"terrain": "<string>",
"volumes_key": "<string>",
"waypoints": [
[
123
]
]
}