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=1for 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
}
}
}
GEThttps://oneapi.ro/api/locations/v1/regiuni/RO11/geometrie?simplificat=1
{
"data": {
"cod": "RO11",
"nume": "Nord-Vest",
"simplificat": true,
"geometrie": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
23.574469046,
46.497163087
]
]
]
]
}
},
"meta": {
"actualizat": {
"administrativ": "2026-08-15T16: 39: 14+03: 00",
"geo": null
}
}
}
GEThttps://oneapi.ro/api/locations/v1/regiuni/RO32/geometrie
{
"data": {
"cod": "RO32",
"nume": "București-Ilfov",
"simplificat": false,
"geometrie": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
26.303283772,
44.767737987
]
]
]
]
}
},
"meta": {
"actualizat": {
"administrativ": "2026-08-15T16: 39: 14+03: 00",
"geo": null
}
}
}
Error codes
| Code | Slug | When it occurs |
|---|---|---|
| 401 | neautentificat | Token missing, invalid, expired or revoked. |
| 403 | feature_indisponibil | The current plan does not include the feature the route depends on. |
| 404 | negasit | The region does not exist. |
| 422 | validare | A parameter failed validation (simplificat); detalii says which and why. |
| 429 | cota_depasita | The 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."
]
}
}
}