/v1/setout-ordinates
Set-out ordinates for a template
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/arch-api/v1/setout-ordinates" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/arch-api/v1/setout-ordinates", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/arch-api/v1/setout-ordinates");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/arch-api/v1/setout-ordinates",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "The set-out ordinates are the height of the arc above the springing line at equally spaced stations across the span: y = √(R² − x²) − (R − rise), with x measured from the centre. Mark these heights up from a straight base line, connect them, and you have the curve to cut a template or bend a batten — the classic way to lay out an arch without a giant compass. The ends are zero (the springings) and the middle equals the rise (the crown).",
"inputs": {
"rise_m": 0.5,
"span_m": 2,
"divisions": 4
},
"radius_m": 1.25,
"ordinates": [
{
"x_m": -1,
"rise_m": 0
},
{
"x_m": -0.5,
"rise_m": 0.3956
},
{
"x_m": 0,
"rise_m": 0.5
},
{
"x_m": 0.5,
"rise_m": 0.3956
},
{
"x_m": 1,
"rise_m": 0
}
],
"station_spacing_m": 0.5
},
"meta": {
"timestamp": "2026-06-07T08:17:55.107Z",
"request_id": "16b58897-9b3e-426a-b70f-c255c140201f"
},
"status": "ok",
"message": "Set-out ordinates",
"success": true
}