/v1/metacentric-height
Metacentric height GM
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"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
}