Vulnerability
POST /api/vulnerability
Information (KPI 0 to 1) about the vulnerability in a single point of interest
Example Request
curl --location 'http://ws-rischio.realitycs.it/api/vulnerability' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"lat" : 41.8967068,
"lng" : 12.4822025,
"id_immobile" : "IMMO_SAMPLE_1",
"nation" : "IT",
"floor" : 1,
"maintenance_status" : 2,
"construction_year" : 1960
}
'
Request Fields
| 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": 1960,
"floor": 1,
"id_immobile": "IMMO_SAMPLE_1",
"lat": 41.8967068,
"lng": 12.4822025,
"maintenance_status": 2
},
"properties": {
"avalanche": 1,
"blaze": 1,
"coastal_flooding": 0.9536799336457116,
"coastline_erosion": 1,
"cold_wave": 0,
"drought": 0,
"earthquake": 1.0,
"flood": 0.9536799336457116,
"glacial_lake_collapse": 0.9536799336457116,
"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
}
}
]
}