curl --request POST \
--url https://api.eddy.engineer/v1/spatial.volumes.check \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"key": "<string>",
"at": "<string>",
"path": [
{
"height": {
"kind": "<string>",
"value": 123,
"geoid": "<string>"
},
"lat": 123,
"lon": 123
}
],
"points": [
{
"height": {
"kind": "<string>",
"value": 123,
"geoid": "<string>"
},
"lat": 123,
"lon": 123
}
],
"speed_m_s": 123,
"step_m": 123,
"terrain": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/spatial.volumes.check"
payload = {
"key": "<string>",
"at": "<string>",
"path": [
{
"height": {
"kind": "<string>",
"value": 123,
"geoid": "<string>"
},
"lat": 123,
"lon": 123
}
],
"points": [
{
"height": {
"kind": "<string>",
"value": 123,
"geoid": "<string>"
},
"lat": 123,
"lon": 123
}
],
"speed_m_s": 123,
"step_m": 123,
"terrain": "<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({
key: '<string>',
at: '<string>',
path: [
{height: {kind: '<string>', value: 123, geoid: '<string>'}, lat: 123, lon: 123}
],
points: [
{height: {kind: '<string>', value: 123, geoid: '<string>'}, lat: 123, lon: 123}
],
speed_m_s: 123,
step_m: 123,
terrain: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/spatial.volumes.check', 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.volumes.check",
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([
'key' => '<string>',
'at' => '<string>',
'path' => [
[
'height' => [
'kind' => '<string>',
'value' => 123,
'geoid' => '<string>'
],
'lat' => 123,
'lon' => 123
]
],
'points' => [
[
'height' => [
'kind' => '<string>',
'value' => 123,
'geoid' => '<string>'
],
'lat' => 123,
'lon' => 123
]
],
'speed_m_s' => 123,
'step_m' => 123,
'terrain' => '<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.volumes.check"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"at\": \"<string>\",\n \"path\": [\n {\n \"height\": {\n \"kind\": \"<string>\",\n \"value\": 123,\n \"geoid\": \"<string>\"\n },\n \"lat\": 123,\n \"lon\": 123\n }\n ],\n \"points\": [\n {\n \"height\": {\n \"kind\": \"<string>\",\n \"value\": 123,\n \"geoid\": \"<string>\"\n },\n \"lat\": 123,\n \"lon\": 123\n }\n ],\n \"speed_m_s\": 123,\n \"step_m\": 123,\n \"terrain\": \"<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.volumes.check")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"at\": \"<string>\",\n \"path\": [\n {\n \"height\": {\n \"kind\": \"<string>\",\n \"value\": 123,\n \"geoid\": \"<string>\"\n },\n \"lat\": 123,\n \"lon\": 123\n }\n ],\n \"points\": [\n {\n \"height\": {\n \"kind\": \"<string>\",\n \"value\": 123,\n \"geoid\": \"<string>\"\n },\n \"lat\": 123,\n \"lon\": 123\n }\n ],\n \"speed_m_s\": 123,\n \"step_m\": 123,\n \"terrain\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/spatial.volumes.check")
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 \"key\": \"<string>\",\n \"at\": \"<string>\",\n \"path\": [\n {\n \"height\": {\n \"kind\": \"<string>\",\n \"value\": 123,\n \"geoid\": \"<string>\"\n },\n \"lat\": 123,\n \"lon\": 123\n }\n ],\n \"points\": [\n {\n \"height\": {\n \"kind\": \"<string>\",\n \"value\": 123,\n \"geoid\": \"<string>\"\n },\n \"lat\": 123,\n \"lon\": 123\n }\n ],\n \"speed_m_s\": 123,\n \"step_m\": 123,\n \"terrain\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"clear": true,
"clearances": [
{}
],
"first_violation": {},
"length": 123,
"method": "<string>",
"points": [
{
"clear": true,
"height": {
"kind": "<string>",
"value": 123,
"geoid": "<string>"
},
"hits": [
{
"above_floor": 123,
"below_ceiling": 123,
"ceiling_ellipsoidal": 123,
"floor_ellipsoidal": 123,
"horizontal": "<string>",
"horizontal_distance": 123,
"index": 123,
"inside": true,
"kind": "<string>",
"vertical": "<string>",
"violation": true,
"volume": "<string>"
}
],
"lat": 123,
"lon": 123,
"violations": [
"<string>"
]
}
],
"samples": 123,
"snapshot": {},
"step_m": 123,
"terrain": "<string>",
"violations": 123,
"volumes": 123,
"volumes_key": "<string>"
}Points or a path against the volumes (SP4)
points (degrees, a height of any kind): each classified against every volume whose footprint bbox contains it (keep-in volumes always; a cylinder by the exact metre distance to its centre, SP4.b) — horizontally by the exact point-in-polygon test (inside / boundary / outside), vertically against the floor and ceiling brought to the ellipsoidal hub (below / inside / above), the signed horizontal distance to the footprint in metres through a local ENU plane, the margins to floor and ceiling; violation = inside a keep-out or outside a keep-in. Time (SP4.b): at (RFC 3339) is the instant the points are checked at or the path starts; volumes with active windows that exclude the instant are skipped and listed in inactive_volumes (without at a timed volume counts as active); along a path speed_m_s makes each sample’s instant at + distance / speed, so a window may open or close under way. path: straight segments between vertices in a local ENU plane about each segment’s start, the height linear in ellipsoidal terms, sampled every step_m (10 by default) with both ends — the first violation (where, which volume), the count, and per volume the smallest horizontal clearance along the path and how many samples were inside. terrain names an SP2 raster for above-ground floors, ceilings and heights; without it an AGL quantity refuses HEIGHT_NO_TERRAIN. The answer names the volume document’s key, its snapshot when it is a connected one, and the terrain’s hash.
curl --request POST \
--url https://api.eddy.engineer/v1/spatial.volumes.check \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"key": "<string>",
"at": "<string>",
"path": [
{
"height": {
"kind": "<string>",
"value": 123,
"geoid": "<string>"
},
"lat": 123,
"lon": 123
}
],
"points": [
{
"height": {
"kind": "<string>",
"value": 123,
"geoid": "<string>"
},
"lat": 123,
"lon": 123
}
],
"speed_m_s": 123,
"step_m": 123,
"terrain": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/spatial.volumes.check"
payload = {
"key": "<string>",
"at": "<string>",
"path": [
{
"height": {
"kind": "<string>",
"value": 123,
"geoid": "<string>"
},
"lat": 123,
"lon": 123
}
],
"points": [
{
"height": {
"kind": "<string>",
"value": 123,
"geoid": "<string>"
},
"lat": 123,
"lon": 123
}
],
"speed_m_s": 123,
"step_m": 123,
"terrain": "<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({
key: '<string>',
at: '<string>',
path: [
{height: {kind: '<string>', value: 123, geoid: '<string>'}, lat: 123, lon: 123}
],
points: [
{height: {kind: '<string>', value: 123, geoid: '<string>'}, lat: 123, lon: 123}
],
speed_m_s: 123,
step_m: 123,
terrain: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/spatial.volumes.check', 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.volumes.check",
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([
'key' => '<string>',
'at' => '<string>',
'path' => [
[
'height' => [
'kind' => '<string>',
'value' => 123,
'geoid' => '<string>'
],
'lat' => 123,
'lon' => 123
]
],
'points' => [
[
'height' => [
'kind' => '<string>',
'value' => 123,
'geoid' => '<string>'
],
'lat' => 123,
'lon' => 123
]
],
'speed_m_s' => 123,
'step_m' => 123,
'terrain' => '<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.volumes.check"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"at\": \"<string>\",\n \"path\": [\n {\n \"height\": {\n \"kind\": \"<string>\",\n \"value\": 123,\n \"geoid\": \"<string>\"\n },\n \"lat\": 123,\n \"lon\": 123\n }\n ],\n \"points\": [\n {\n \"height\": {\n \"kind\": \"<string>\",\n \"value\": 123,\n \"geoid\": \"<string>\"\n },\n \"lat\": 123,\n \"lon\": 123\n }\n ],\n \"speed_m_s\": 123,\n \"step_m\": 123,\n \"terrain\": \"<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.volumes.check")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"at\": \"<string>\",\n \"path\": [\n {\n \"height\": {\n \"kind\": \"<string>\",\n \"value\": 123,\n \"geoid\": \"<string>\"\n },\n \"lat\": 123,\n \"lon\": 123\n }\n ],\n \"points\": [\n {\n \"height\": {\n \"kind\": \"<string>\",\n \"value\": 123,\n \"geoid\": \"<string>\"\n },\n \"lat\": 123,\n \"lon\": 123\n }\n ],\n \"speed_m_s\": 123,\n \"step_m\": 123,\n \"terrain\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/spatial.volumes.check")
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 \"key\": \"<string>\",\n \"at\": \"<string>\",\n \"path\": [\n {\n \"height\": {\n \"kind\": \"<string>\",\n \"value\": 123,\n \"geoid\": \"<string>\"\n },\n \"lat\": 123,\n \"lon\": 123\n }\n ],\n \"points\": [\n {\n \"height\": {\n \"kind\": \"<string>\",\n \"value\": 123,\n \"geoid\": \"<string>\"\n },\n \"lat\": 123,\n \"lon\": 123\n }\n ],\n \"speed_m_s\": 123,\n \"step_m\": 123,\n \"terrain\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"clear": true,
"clearances": [
{}
],
"first_violation": {},
"length": 123,
"method": "<string>",
"points": [
{
"clear": true,
"height": {
"kind": "<string>",
"value": 123,
"geoid": "<string>"
},
"hits": [
{
"above_floor": 123,
"below_ceiling": 123,
"ceiling_ellipsoidal": 123,
"floor_ellipsoidal": 123,
"horizontal": "<string>",
"horizontal_distance": 123,
"index": 123,
"inside": true,
"kind": "<string>",
"vertical": "<string>",
"violation": true,
"volume": "<string>"
}
],
"lat": 123,
"lon": 123,
"violations": [
"<string>"
]
}
],
"samples": 123,
"snapshot": {},
"step_m": 123,
"terrain": "<string>",
"violations": 123,
"volumes": 123,
"volumes_key": "<string>"
}