API & Web Services
Les Géoservices
SLAPIS a mis en place une infrastructure de géoservices (web services) permettant de consulter et de télécharger des données géoréférencées via des requêtes adaptées. Les formats disponibles sont : CSV, JSON, GeoJSON, WFS, WKT.
OGC Web Services
WMS / WFS
Services standardisés OGC pour données raster (WMS) et vectorielles (WFS). Référence : opengeospatial.org
RESTful API
REST API Services
Interfaces de programmation compatibles REST (GET/PUT/POST/DELETE) pour l'échange de données entre applications.
Base URL
Endpoint racine
http://slapis.fi.ibimet.cnr.it:8080/SlapisWS/api
⚠ La section suivante est destinée aux utilisateurs experts et est disponible en anglais.
GET
j_get_stations_data
JSON
/data/j_get_stations_data/json/{id_station}/{stat_name}/{n_record}
| Parameter | Type | Description |
|---|---|---|
| id_station | Integer | 1 = Garbey Kourou · 2 = Bossey Bangou · 8 = Niamey |
| stat_name | String | Label for output file |
| n_record | Integer | Number of records to retrieve |
GET
j_get_stations_data
CSV
/data/j_get_stations_data/csv/{id_station}/{stat_name}/{year}
| Parameter | Type | Description |
|---|---|---|
| id_station | Integer | 1 = Garbey Kourou · 2 = Bossey Bangou · 8 = Niamey |
| stat_name | String | Label for output file |
| year | Integer | Selected year |
GET
j_get_optimized_glofas
JSON — GloFAS optimisé
/data/j_get_optimized_glofas/{id_station}
| Parameter | Type | Description |
|---|---|---|
| id_station | Integer | 1 = Garbey Kourou · 2 = Bossey Bangou · 8 = Niamey |
GET
j_get_glofas_rawdata
JSON — GloFAS brut 30j
/data/j_get_glofas_rawdata/{id_station}
Returns D1…D30 raw GloFAS forecast values for the specified station.
GET
j_get_stations_geojson
GeoJSON — stations
/vector/j_get_stations_geojson
Returns all hydrometric stations in GeoJSON format.
GET
j_get_stations_scenario
GeoJSON — scénarios inondation
/vector/j_get_scenario{lvl:(/lvl/.+?)?}
| Lvl (optional) | Scénario |
|---|---|
| Q5 | Crue Fréquente |
| Q15 | Situation normale |
| TR30 | Inondation grave |
| TR100 | Inondation catastrophique |