Zum Inhalt springen
GET /v1/meta

Spec

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/wkt-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "name": "WKT API",
        "notes": "Coordinates use [longitude, latitude] order in GeoJSON and (x y) = (lon lat) in WKT. Pass a single geometry; a FeatureCollection is not a single WKT geometry. Send large geometries via POST.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/to-geojson",
                "params": {
                    "wkt": "a WKT string, e.g. POINT (30 10) (required)"
                },
                "returns": "the GeoJSON geometry"
            },
            {
                "path": "/v1/to-wkt",
                "params": {
                    "geojson": "a GeoJSON geometry or Feature (required)"
                },
                "returns": "the WKT string"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Convert geometry between WKT (Well-Known Text, as used by PostGIS, GEOS, Shapely and OGC) and GeoJSON, in both directions. Supports Point, LineString, Polygon, their Multi* variants and GeometryCollection. Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-02T16:51:46.682Z",
        "request_id": "6112d8fa-7ae4-474a-a9c9-83c327c8b2b6"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}