Naar de inhoud
GET /v1/bilinear

Bilinear interpolation

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "tx": 0.5,
        "ty": 0.5,
        "note": "Bilinear interpolation: interpolate along x at each y-edge (q11→q21 and q12→q22), then along y. q11=(x1,y1), q21=(x2,y1), q12=(x1,y2), q22=(x2,y2).",
        "value": 15,
        "inputs": {
            "x": 0.5,
            "y": 0.5,
            "x1": 0,
            "x2": 1,
            "y1": 0,
            "y2": 1
        },
        "extrapolated": false
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:06.621Z",
        "request_id": "a2750d06-8868-4449-a86f-0f71c66a2d70"
    },
    "status": "ok",
    "message": "Bilinear interp",
    "success": true
}