/v1/swing
Swing circle around the anchor
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/anchor-api/v1/swing" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/anchor-api/v1/swing", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/anchor-api/v1/swing");
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/anchor-api/v1/swing",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"note": "The boat swings on a circle of radius = the horizontal reach of the rode (√(rode² − vertical²)) plus the boat length. Leave at least this radius to every other boat and hazard — they swing too, and on different rodes they swing differently, so allow generous room and watch the wind shift.",
"inputs": {
"rode_ft": 168,
"depth_ft": 20,
"bow_height_ft": 4,
"boat_length_ft": 30
},
"swing_radius_ft": 196.3,
"swing_diameter_ft": 392.6,
"horizontal_reach_ft": 166.3
},
"meta": {
"timestamp": "2026-06-06T23:54:01.987Z",
"request_id": "34b7d559-eb27-4861-aca6-01a30c608349"
},
"status": "ok",
"message": "Swing circle",
"success": true
}