oneapi
Sign in
Locations v1 / Geometrie & hărți

Geometry of a region

The region's official (ANCPI) polygon (NUTS code) as GeoJSON. ?simplificat=1 = a small payload.

GET
https://oneapi.ro/api/locations/v1/regiuni/{cod}/geometrie

Path parameters

NameTypeDescriptionExample
codrequired string NUTS 2 code of the development region (e.g. RO11).

Query parameters

NameTypeDescriptionAccepted values
simplificatoptional string | null Geometry with fewer points. e.g. 1

How it behaves

  • The region's official polygon, as GeoJSON. ?simplificat=1 for a small payload.

What it is for

  • A development region's outline on a map, as a grouping above counties.
  • A choropleth across the eight NUTS-2 regions, for regional reporting.
  • A visual check of the area covered by a regional operation.

Response structure

FieldTypeDescription
data.cod string The region's NUTS-2 code (RO11, RO12…).opțional
data.cod_siruta integer The SIRUTA code (the entity's public key).opțional
data.nume string The name of the entity.
data.simplificat boolean The polygon returned is the simplified one (fewer points), not the full one.
data.geometrie object GeoJSON geometry (MultiPolygon): type + coordinates.
data.geometrie.type string The GeoJSON geometry type (Polygon or MultiPolygon).
data.geometrie.coordinates[] mixed The polygon's coordinates, in GeoJSON order (lng, lat).
meta.actualizat object Prospețimea datelor pe domenii (dată ISO 8601).

Response examples

GEThttps://oneapi.ro/api/locations/v1/regiuni/RO11/geometrie
{
    "data": {
        "cod": "RO11",
        "nume": "Nord-Vest",
        "simplificat": false,
        "geometrie": {
            "type": "MultiPolygon",
            "coordinates": [
                [
                    [
                        [
                            24.179521103,
                            46.804675675
                        ]
                    ]
                ]
            ]
        }
    },
    "meta": {
        "actualizat": {
            "administrativ": "2026-08-15T16: 39: 14+03: 00",
            "geo": null
        }
    }
}

Error codes

CodeSlugWhen it occurs
401neautentificatToken missing, invalid, expired or revoked.
403feature_indisponibilThe current plan does not include the feature the route depends on.
404negasitThe region does not exist.
422validareA parameter failed validation (simplificat); detalii says which and why.
429cota_depasitaThe plan's monthly quota has been exceeded (see Retry-After).

All errors share the same shape. eroare.cod is stable and is the value you should branch on in code — not the text in mesaj, which may change.

{
    "eroare": {
        "cod": "validare",
        "mesaj": "A parameter failed validation (simplificat); detalii says which and why.",
        "detalii": {
            "cod": [
                "The value sent does not satisfy the parameter rule."
            ]
        }
    }
}