Vai al contenuto
GET /v1/sag

Catenary sag, length & tension

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/catenary-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/catenary-api/v1/sag" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/catenary-api/v1/sag", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/catenary-api/v1/sag");
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/catenary-api/v1/sag",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "sag": 2.50208,
        "note": "Exact catenary with level supports. Min tension is the horizontal tension at the lowest point; max tension is at the supports.",
        "span": 100,
        "slack": 0.16675,
        "formula": "a = H/w; sag = a(cosh(L/2a) − 1); length = 2a·sinh(L/2a); Tmax = H·cosh(L/2a).",
        "max_tension": 5025.0208,
        "min_tension": 5000,
        "cable_length": 100.16675,
        "weight_per_length": 10,
        "horizontal_tension": 5000,
        "catenary_parameter_a": 500,
        "max_tension_location": "supports"
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:04.226Z",
        "request_id": "db5b29e6-902b-4636-adb6-6ec2688eb743"
    },
    "status": "ok",
    "message": "Catenary sag, length & tension",
    "success": true
}