/v1/distance
Distance between two locators
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/maidenhead-api/v1/distance" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/maidenhead-api/v1/distance", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/maidenhead-api/v1/distance");
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/maidenhead-api/v1/distance",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"to": "IO91WM",
"from": "JN58TD",
"to_center": {
"lat": 51.52083,
"lon": -0.125
},
"bearing_deg": 298.42,
"distance_km": 921.151,
"distance_mi": 572.377,
"from_center": {
"lat": 48.14583,
"lon": 11.625
}
},
"meta": {
"timestamp": "2026-06-03T17:42:03.795Z",
"request_id": "30eddbb8-7d5d-4f6e-ab54-67ea7ca0e88c"
},
"status": "ok",
"message": "Grid distance",
"success": true
}