/v1/coordinates
Hole positions on a bolt circle
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/boltcircle-api/v1/coordinates" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/boltcircle-api/v1/coordinates", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/boltcircle-api/v1/coordinates");
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/boltcircle-api/v1/coordinates",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Holes equally spaced by 360/N. x = cx + R·cos θ, y = cy + R·sin θ. Adjacent chord = 2·R·sin(π/N).",
"holes": 4,
"center": {
"x": 0,
"y": 0
},
"radius": 50,
"direction": "ccw",
"coordinates": [
{
"x": 50,
"y": 0,
"hole": 1,
"angle_deg": 0
},
{
"x": 0,
"y": 50,
"hole": 2,
"angle_deg": 90
},
{
"x": -50,
"y": 0,
"hole": 3,
"angle_deg": 180
},
{
"x": 0,
"y": -50,
"hole": 4,
"angle_deg": 270
}
],
"adjacent_chord": 70.71068,
"angle_step_deg": 90,
"start_angle_deg": 0,
"bolt_circle_diameter": 100
},
"meta": {
"timestamp": "2026-06-04T01:59:06.237Z",
"request_id": "54eb2292-92e3-49be-8bf9-d6bc8d5761cc"
},
"status": "ok",
"message": "Hole positions on a bolt circle",
"success": true
}