Spatial references
Dernière mise à jour il y a 1 an
Cet article vous a-t-il été utile ?
An optional fields mask
GET /api/1/spatial/coverage/{level}/ HTTP/1.1 Host: www.data.gouv.fr Accept: */*
Success
[ { "features": [ { "geometry": { "coordinates": [ {} ], "type": "Point" }, "id": "text", "properties": {}, "type": "Feature" } ], "type": "FeatureCollection" } ]
GET /api/1/spatial/granularities/ HTTP/1.1 Host: www.data.gouv.fr Accept: */*
[ { "id": "text", "name": "text" } ]
GET /api/1/spatial/levels/ HTTP/1.1 Host: www.data.gouv.fr Accept: */*
A zone identifier
GET /api/1/spatial/zone/{id}/ HTTP/1.1 Host: www.data.gouv.fr Accept: */*
No Content
Append dynamic datasets
The amount of datasets to fetch
GET /api/1/spatial/zone/{id}/datasets/ HTTP/1.1 Host: www.data.gouv.fr Accept: */*
{ "class": "text", "id": "text", "acronym": "text", "page": "text", "title": "text", "uri": "text" }
The string to autocomplete/suggest
The amount of suggestion to fetch
GET /api/1/spatial/zones/suggest/ HTTP/1.1 Host: www.data.gouv.fr Accept: */*
[ { "code": "text", "id": "text", "level": "text", "name": "text", "uri": "text" } ]
A zone identifiers list (comma separated)
GET /api/1/spatial/zones/{ids}/ HTTP/1.1 Host: www.data.gouv.fr Accept: */*
{ "features": [ { "geometry": { "coordinates": [ {} ], "type": "Point" }, "id": "text", "properties": {}, "type": "Feature" } ], "type": "FeatureCollection" }