Vulnerability Multiple
POST /api/vulnerability/multiple
Information (KPI 0 to 1) about the vulnerability in multiple points of interest
Example Request
curl --location 'http://ws-rischio.realitycs.it/api/vulnerability/multiple' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"nation": "IT",
"features": [
{
"id_immobile": "IMMO_SAMPLE_1",
"lat": 142.6275,
"lng": 13.6559,
"construction_year": 1990.0,
"maintenance_status": 2,
"floor": 1.0
},
{
"id_immobile": "IMMO_SAMPLE_2",
"lat": 42.6275,
"lng": 13.6559,
"construction_year": 1990.0,
"maintenance_status": 2,
"floor": 1.0
},
{
"id_immobile": "IMMO_SAMPLE_3",
"lat": 43.6869,
"lng": 10.546,
"construction_year": 1900.0,
"maintenance_status": 2,
"property_value": 570000,
"floor": null
}
]
}'
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 | ||
nation | optional | Nation ID | string | IT | ||
maintenance_status | optional | Maintenance status id | integer | 2 | ||
construction_year | optional | Estate's construction year | integer | 1997 | ||
floor | optional | 0 | Estate's floor | integer | 1 |
Example Response
{
"_metadata": {
"message": "",
"query": {},
"status": 200
},
"items": [
{
"asset": {
"construction_year": 1990,
"floor": 1,
"id_immobile": "IMMO_SAMPLE_1",
"lat": 142.6275,
"lng": 13.6559,
"maintenance_status": 2
},
"properties": {
"avalanche": 1,
"blaze": 1,
"coastal_flooding": 1.0,
"coastline_erosion": 1,
"cold_wave": 0,
"drought": 0,
"earthquake": 0.71,
"flood": 1.0,
"glacial_lake_collapse": 1.0,
"heat_wave": 0,
"heavy_rainfall": 0,
"landslide": 1,
"ocean_acidification": 0,
"permafrost_thaw": 0,
"rain_regime_change": 0,
"saltwater_intrusion": 0,
"sandstorm": 0,
"sea_level_rise": 0,
"snow_storm": 0,
"soil_degradation": 0,
"soil_erosion": 0,
"subsidence": 1,
"temperature_regime_change": 0,
"thermal_stress": 0,
"volcano": 1,
"water_stress": 0,
"wind_regime_change": 0,
"windstorm": 0
}
},
{
"asset": {
"construction_year": 1990,
"floor": 1,
"id_immobile": "IMMO_SAMPLE_2",
"lat": 42.6275,
"lng": 13.6559,
"maintenance_status": 2
},
"properties": {
"avalanche": 1,
"blaze": 1,
"coastal_flooding": 0.9424510454204585,
"coastline_erosion": 1,
"cold_wave": 0,
"drought": 0,
"earthquake": 0.71,
"flood": 0.9424510454204585,
"glacial_lake_collapse": 0.9424510454204585,
"heat_wave": 0,
"heavy_rainfall": 0,
"landslide": 1,
"ocean_acidification": 0,
"permafrost_thaw": 0,
"rain_regime_change": 0,
"saltwater_intrusion": 0,
"sandstorm": 0,
"sea_level_rise": 0,
"snow_storm": 0,
"soil_degradation": 0,
"soil_erosion": 0,
"subsidence": 1,
"temperature_regime_change": 0,
"thermal_stress": 0,
"volcano": 1,
"water_stress": 0,
"wind_regime_change": 0,
"windstorm": 0
}
},
{
"asset": {
"construction_year": 1900,
"floor": 0,
"id_immobile": "IMMO_SAMPLE_3",
"lat": 43.6869,
"lng": 10.546,
"maintenance_status": 2
},
"properties": {
"avalanche": 1,
"blaze": 1,
"coastal_flooding": 1.0,
"coastline_erosion": 1,
"cold_wave": 0,
"drought": 0,
"earthquake": 1.0,
"flood": 1.0,
"glacial_lake_collapse": 1.0,
"heat_wave": 0,
"heavy_rainfall": 0,
"landslide": 1,
"ocean_acidification": 0,
"permafrost_thaw": 0,
"rain_regime_change": 0,
"saltwater_intrusion": 0,
"sandstorm": 0,
"sea_level_rise": 0,
"snow_storm": 0,
"soil_degradation": 0,
"soil_erosion": 0,
"subsidence": 1,
"temperature_regime_change": 0,
"thermal_stress": 0,
"volcano": 1,
"water_stress": 0,
"wind_regime_change": 0,
"windstorm": 0
}
}
]
}