Zum Inhalt springen
GET /v1/echo-range

Range/depth from echo travel time

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/sonar-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}