/v1/layout
Even spacing for a count
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/handrail-api/v1/layout" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/handrail-api/v1/layout", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/handrail-api/v1/layout");
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/handrail-api/v1/layout",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"note": "To set out a known number of balusters evenly, the gap = (rail length − total baluster width) ÷ (count + 1), the centre-to-centre pitch = baluster width + gap, and the first baluster's centre sits one gap plus half a baluster from the post face. Mark the first centre, then step off the pitch — the last gap lands equal to the first, which is what makes a run look right.",
"gap_mm": 96,
"inputs": {
"baluster_count": 14,
"baluster_width_mm": 40,
"railing_length_mm": 2000
},
"centre_to_centre_mm": 136,
"first_centre_from_end_mm": 116
},
"meta": {
"timestamp": "2026-06-07T08:17:48.118Z",
"request_id": "f742ccdb-aeaf-4444-8581-9d8129272881"
},
"status": "ok",
"message": "Layout",
"success": true
}