Get a vector tile
curl --request GET \
--url https://api.gabin.ai/v1/tiles/{layer}/{z}/{x}/{y}.pbf \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gabin.ai/v1/tiles/{layer}/{z}/{x}/{y}.pbf', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gabin.ai/v1/tiles/{layer}/{z}/{x}/{y}.pbf"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)"<string>"Tiles
Get a vector tile
A Mapbox Vector Tile (MVT, XYZ scheme) of a gabin.ai map layer, for MapLibre GL or Mapbox GL (send the key with transformRequest). 204 when the tile is empty. Feature properties are those of the gabin.ai map (ids such as batiment_groupe_id, parcelle_id open the matching endpoints).
Weight: 0.1 for a tile served from the server cache (10 min), 0.5 for a tile read from the database.
Layers, zoom ranges and query options (layer filters, passed as-is; unknown keys are ignored):
buildings: zoom 15–16; optionsacceslibre,friche,parking(true/false: extra properties)parcels: zoom 15–16districts: zoom 10–13owners: zoom 15–16; optionsiris,commune(INSEE) orcp(postal code)occupants: zoom 15–16; optionsiris,communeorcpcondominiums: zoom 15–16; optionsiris,communeorcpfiber: zoom 15–16transactions: zoom 15–16; optionsiris/commune/cp,prix_min,prix_max,date_min,date_max(YYYY-MM-DD),type_local,vente_multilot,surface_min,surface_max,pieces_min,pieces_maxenergy: zoom 15–16; optionsiris/commune/cp,etiquettes(A,B…),date_min,date_max,jeux,type_batiment,surface_min,surface_max,generateur,isolationmarket: zoom 0–22; optionsmetric(price, rent, demography or income metric id)planning: zoom 13–22; optionsview(zonesorfriches)permits: zoom 15–16; optionstype,statut,annee_min,annee_maxheritage: zoom 13–22; optionskinds(monument, abords, spr, site),perimetres(true/false),iris/commune/cpev_charging: zoom 12–15parking: zoom 13–15
GET
/
v1
/
tiles
/
{layer}
/
{z}
/
{x}
/
{y}
.pbf
Get a vector tile
curl --request GET \
--url https://api.gabin.ai/v1/tiles/{layer}/{z}/{x}/{y}.pbf \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gabin.ai/v1/tiles/{layer}/{z}/{x}/{y}.pbf', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.gabin.ai/v1/tiles/{layer}/{z}/{x}/{y}.pbf"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)"<string>"Authorizations
API key gab_live_… or OAuth access token gat_….
Path Parameters
Layer name. See the endpoint description for zoom ranges and options.
Available options:
buildings, parcels, districts, owners, occupants, condominiums, fiber, transactions, energy, market, planning, permits, heritage, ev_charging, parking Zoom level (0 to 22).
Required range:
0 <= x <= 9007199254740991Tile column (XYZ scheme).
Required range:
0 <= x <= 9007199254740991Tile row (XYZ scheme).
Required range:
0 <= x <= 9007199254740991Response
Mapbox Vector Tile (protobuf); 204 when empty.
The response is of type file.
⌘I