/v1/distance
Distance between two locators
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}