/v1/metacentric-height
Metacentric height GM
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/shipstability-api/v1/metacentric-height" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/shipstability-api/v1/metacentric-height", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/shipstability-api/v1/metacentric-height");
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/shipstability-api/v1/metacentric-height",
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": {
"gm_m": 1,
"note": "The metacentric height GM = KM − KG is the single most important initial-stability number: the height of the metacentre (set by the hull form and draught) above the centre of gravity (set by loading). Positive GM means the ship returns upright; negative GM means it lolls or capsizes. Too small is dangerous, but too large gives a violent, cargo-damaging roll — naval architects aim for a comfortable middle.",
"inputs": {
"kg_m": 7,
"km_m": 8
},
"stability": "very stiff — violent roll, hard on cargo and crew"
},
"meta": {
"timestamp": "2026-06-06T23:53:53.940Z",
"request_id": "824989c6-77b0-466d-8c5e-4a097f8fe15b"
},
"status": "ok",
"message": "Metacentric height",
"success": true
}