Get the boundary of a zone
curl --request GET \
--url https://api.gabin.ai/v1/zones/{level}/{code}/boundary \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gabin.ai/v1/zones/{level}/{code}/boundary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gabin.ai/v1/zones/{level}/{code}/boundary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"type": "Polygon",
"coordinates": [
"<unknown>"
]
},
"meta": {}
}
Zones
Get the boundary of a zone
Simplified boundary of a zone (region, department, city, district) as a GeoJSON Polygon or MultiPolygon, WGS84, to draw it on a map or to derive a bbox.
GET
/
v1
/
zones
/
{level}
/
{code}
/
boundary
Get the boundary of a zone
curl --request GET \
--url https://api.gabin.ai/v1/zones/{level}/{code}/boundary \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gabin.ai/v1/zones/{level}/{code}/boundary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gabin.ai/v1/zones/{level}/{code}/boundary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"type": "Polygon",
"coordinates": [
"<unknown>"
]
},
"meta": {}
}
Authorizations
API key gab_live_… or OAuth access token gat_….
Path Parameters
Zone level: region, department, city (or arrondissement), district.
Available options:
region, department, city, district Code of the zone: region code ("84"), department ("69"), INSEE ("69266") or IRIS ("692660101").
Pattern:
^[0-9AB]{2,9}$⌘I