Aller au contenu
GET /v1/meta

Spec

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/geojson-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "name": "GeoJSON API",
        "notes": "Coordinates are GeoJSON order [longitude, latitude]. Area uses the spherical earth model; pass real-world WGS84 lon/lat.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/area",
                "params": {
                    "geojson": "Polygon/MultiPolygon/Feature(Collection) (required)"
                },
                "returns": "area in m², km², hectares, acres, sq miles"
            },
            {
                "path": "/v1/centroid",
                "params": {
                    "geojson": "any GeoJSON (required)"
                },
                "returns": "centroid {lat,lng}"
            },
            {
                "path": "/v1/bbox",
                "params": {
                    "geojson": "any GeoJSON (required)"
                },
                "returns": "bounding box (W/S/E/N) + center"
            },
            {
                "path": "/v1/length",
                "params": {
                    "geojson": "LineString/MultiLineString (required)"
                },
                "returns": "length in km, m, miles, nm"
            },
            {
                "path": "/v1/point-in-polygon",
                "params": {
                    "lat": "required",
                    "lng": "required",
                    "polygon": "GeoJSON polygon (required)"
                },
                "returns": "inside: true/false"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Geospatial metrics on GeoJSON — true earth-surface area, centroid, bounding box, line length and point-in-polygon tests. Powered by Turf. Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-02T16:51:48.222Z",
        "request_id": "b7bd55fc-b491-44b5-86ac-71a8535752e9"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}