Vulnerability
POST /api/risk
Information about the risk in euro in single point of interest
Example Request
curl --location 'http://ws-rischio.realitycs.it/api/risk' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"lat": 41.8967068,
"lng": 12.4822025,
"property_value": 245000,
"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 | IT | Nation ID | string | IT | |
maintenance_status | optional | Maintenance status id | integer | 2 | ||
construction_year | optional | Estate's construction year | integer | 1997 | ||
property_value | yes | Estate's value in euro | integer | 245000 | ||
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,
"property_value": 245000
},
"properties": {
"property_value_risked_avalanche": 0,
"property_value_risked_blaze": 166600,
"property_value_risked_coastal_flooding": 0,
"property_value_risked_coastline_erosion": 171500,
"property_value_risked_cold_wave": 0,
"property_value_risked_drought": 0,
"property_value_risked_earthquake": 107800,
"property_value_risked_flood": 0,
"property_value_risked_glacial_lake_collapse": 0,
"property_value_risked_heat_wave": 0,
"property_value_risked_heavy_rainfall": 0,
"property_value_risked_landslide": 0,
"property_value_risked_ocean_acidification": 0,
"property_value_risked_permafrost_thaw": 0,
"property_value_risked_rain_regime_change": 0,
"property_value_risked_saltwater_intrusion": 0,
"property_value_risked_sandstorm": 0,
"property_value_risked_sea_level_rise": 0,
"property_value_risked_snow_storm": 0,
"property_value_risked_soil_degradation": 0,
"property_value_risked_soil_erosion": 0,
"property_value_risked_subsidence": 203350,
"property_value_risked_temperature_regime_change": 0,
"property_value_risked_thermal_stress": 0,
"property_value_risked_volcano": 0,
"property_value_risked_water_stress": 0,
"property_value_risked_wind_regime_change": 0,
"property_value_risked_windstorm": 0
}
}
]
}