Naar de inhoud
GET /v1/meta

Spec

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/geodistance-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "name": "Geo Distance API",
        "notes": "Distances are great-circle (spherical earth), not road distances — for driving routes use a routing API. Nothing is stored.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/distance",
                "params": {
                    "lat1": "required",
                    "lat2": "required",
                    "lng1": "required",
                    "lng2": "required"
                },
                "returns": "distance (m/km/mi/nm), initial & final bearing, compass point"
            },
            {
                "path": "/v1/destination",
                "params": {
                    "lat": "required",
                    "lng": "required",
                    "unit": "m|km|mi|nm (default km)",
                    "bearing": "degrees (required)",
                    "distance": "required"
                },
                "returns": "the destination lat/lng"
            },
            {
                "path": "/v1/midpoint",
                "params": {
                    "lat1": "required",
                    "lat2": "required",
                    "lng1": "required",
                    "lng2": "required"
                },
                "returns": "the great-circle midpoint"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Great-circle navigation maths between latitude/longitude points — the straight-line (as-the-crow-flies) distance, the initial and final compass bearing, the destination point from a start, bearing and distance, and the midpoint between two points. Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-03T01:09:45.285Z",
        "request_id": "3ec8926e-7716-4318-942e-48ce8b016761"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}