/v1/echo-range
Range/depth from echo travel time
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}