Vai al contenuto
GET /v1/echo-range

Range/depth from echo travel time

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/sonar-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/sonar-api/v1/echo-range" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sonar-api/v1/echo-range", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sonar-api/v1/echo-range");
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/sonar-api/v1/echo-range",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "An echo sounder or sonar measures the two-way travel time, so the distance to the bottom or target = sound speed × time ÷ 2 (the sound goes out and comes back). At a typical 1,500 m/s, a one-second round trip is 750 m away. The accuracy rests on the assumed sound speed, which is why survey-grade echo sounders measure the real sound-speed profile (see /v1/sound-speed) rather than assume it.",
        "inputs": {
            "travel_time_s": 1,
            "sound_speed_m_s": 1500
        },
        "range_m": 750,
        "range_km": 0.75
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:52.091Z",
        "request_id": "47a3d0ab-af18-4245-b593-55c545162508"
    },
    "status": "ok",
    "message": "Echo range",
    "success": true
}