Aller au contenu
GET /v1/ratios

SA/D and DLR ratios

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/sailing-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "SA/D = sail area ÷ (displaced volume in ft³)^(2/3); ~16–18 is a typical cruiser, 20+ is sporty. DLR = (displacement in long tons) ÷ (0.01 × LWL)³; under 200 is light, over 300 heavy.",
        "inputs": {
            "lwl_ft": 25,
            "sail_area_sqft": 400,
            "displacement_lb": 10000
        },
        "dlr_class": "moderate",
        "sad_class": "cruiser",
        "displaced_volume_cuft": 156.25,
        "displacement_length_ratio": 285.7,
        "sail_area_displacement_ratio": 13.79
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:04.703Z",
        "request_id": "4db20b9e-a972-4c27-a7ed-5950f19d0d59"
    },
    "status": "ok",
    "message": "Design ratios",
    "success": true
}