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