/v1/swing
Swing circle around the anchor
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}