Danger Multiple
POST /api/danger/multiple
Information (KPI 0 to 1) about the dangers in multiple points of interest
Example Request
curl --location 'http://ws-rischio.realitycs.it/api/danger/multiple' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"nation": "IT",
"features": [
{
"id_immobile": "IMMO_SAMPLE_1",
"lat": 43.6869,
"lng": 10.546
},
{
"id_immobile": "IMMO_SAMPLE_2",
"lat": 43.8142,
"lng": 11.0625
},
{
"id_immobile": "IMMO_SAMPLE_3",
"lat": 44.3354,
"lng": 9.19816
}
]
}'
Request Fields
| Field | Required | Default | Description | Type | Example | Notes |
|---|---|---|---|---|---|---|
features | yes | List of different locations or assets to interrogate | list | | ||
nation | yes | `IT` | Longitude | string | "12.4822025" |
Objects inside features list have this structure:
| Field | Required | Default | Description | Type | Example | Notes |
|---|---|---|---|---|---|---|
lat | yes | Latitude | number | 41.8967068 | ||
lng | yes | Longitude | number | "12.4822025" | ||
id_immobile | optional | Custom asset id | string | IMMO_SAMPLE_1 |
Example Response
{
"_metadata": {
"message": "",
"query": {},
"status": 200
},
"items": [
{
"asset": {
"id_immobile": "IMMO_SAMPLE_1",
"lat": 43.6869,
"lng": 10.546
},
"properties": {
"avalanche": 0,
"blaze": 0.79,
"coastal_flooding": 0,
"coastline_erosion": 0,
"cold_wave": 0.14,
"drought": 0.39,
"earthquake": 0.44,
"flood": 0.33,
"glacial_lake_collapse": 0,
"heat_wave": 0.13,
"heavy_rainfall": 0.27,
"landslide": 0,
"ocean_acidification": 0,
"permafrost_thaw": 0,
"rain_regime_change": 0.29,
"saltwater_intrusion": 0.33,
"sandstorm": 0.08,
"sea_level_rise": 0,
"snow_storm": 0,
"soil_degradation": 1,
"soil_erosion": 0.03,
"subsidence": 0.67,
"temperature_regime_change": 0.29,
"thermal_stress": 0.85,
"volcano": 0,
"water_stress": 0.42,
"wind_regime_change": 0.6,
"windstorm": 0.46
}
},
{
"asset": {
"id_immobile": "IMMO_SAMPLE_2",
"lat": 43.8142,
"lng": 11.0625
},
"properties": {
"avalanche": 0,
"blaze": 0.73,
"coastal_flooding": 0,
"coastline_erosion": 0,
"cold_wave": 0.35,
"drought": 0.31,
"earthquake": 0.49,
"flood": 0.67,
"glacial_lake_collapse": 0,
"heat_wave": 0.07,
"heavy_rainfall": 0.27,
"landslide": 0,
"ocean_acidification": 0,
"permafrost_thaw": 0,
"rain_regime_change": 0.31,
"saltwater_intrusion": 0,
"sandstorm": 0.09,
"sea_level_rise": 0,
"snow_storm": 0,
"soil_degradation": 1,
"soil_erosion": 0.02,
"subsidence": 0.83,
"temperature_regime_change": 0.31,
"thermal_stress": 0.67,
"volcano": 0,
"water_stress": 0.42,
"wind_regime_change": 0.3,
"windstorm": 0.4
}
},
{
"asset": {
"id_immobile": "IMMO_SAMPLE_3",
"lat": 44.3354,
"lng": 9.19816
},
"properties": {
"avalanche": 0,
"blaze": 0.28,
"coastal_flooding": 0,
"coastline_erosion": 0.6,
"cold_wave": 0,
"drought": 0,
"earthquake": 0.31,
"flood": 0,
"glacial_lake_collapse": 0,
"heat_wave": 0,
"heavy_rainfall": 0,
"landslide": 0.5,
"ocean_acidification": 0,
"permafrost_thaw": 0,
"rain_regime_change": 0,
"saltwater_intrusion": 0,
"sandstorm": 0.07,
"sea_level_rise": 0,
"snow_storm": 0,
"soil_degradation": 1,
"soil_erosion": 0.01,
"subsidence": 0,
"temperature_regime_change": 0,
"thermal_stress": 0.76,
"volcano": 0,
"water_stress": 0.42,
"wind_regime_change": 0.39,
"windstorm": 0.36
}
}
]
}