Skip to content

Risk Multiple

POST /api/risk/multiple

Information about the risk in euro multiple point of interest

Example Request

curl --location 'http://ws-rischio.realitycs.it/api/risk/multiple' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
    "nation": "IT",
    "features": [
        {
            "id_immobile": "IMMO_SAMPLE_1",
            "lat": 42.6275,
            "lng": 13.6559,
            "construction_year": 1990.0,
            "maintenance_status": 2,
            "property_value": 79000,
            "floor": 1
        },
        {
            "id_immobile": "IMMO_SAMPLE_2",
            "lat": 42.6275,
            "lng": 13.6559,
            "construction_year": 1990.0,
            "maintenance_status": 2,
            "property_value": 79000,
            "floor": 1
        },
        {
            "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

            [
              {
                "id_immobile": "IMMO_SAMPLE_1",
                "lat": 43.6869,
                "lng": 10.546,
                "construction_year": 1990,
                "maintenance_status": 2,
                "property_value": 79000,
                "floor": 1
              },
              {
                ...
              }
            ]       
        
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 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": 1990,
        "floor": 1,
        "id_immobile": "IMMO_SAMPLE_1",
        "lat": 42.6275,
        "lng": 13.6559,
        "maintenance_status": 2,
        "property_value": 79000
      },
      "properties": {
        "property_value_risked_avalanche": 0,
        "property_value_risked_blaze": 43450,
        "property_value_risked_coastal_flooding": 0,
        "property_value_risked_coastline_erosion": 0,
        "property_value_risked_cold_wave": 0,
        "property_value_risked_drought": 0,
        "property_value_risked_earthquake": 40384.8,
        "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": 52930,
        "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
      }
    },
    {
      "asset": {
        "construction_year": 1990,
        "floor": 1,
        "id_immobile": "IMMO_SAMPLE_2",
        "lat": 42.6275,
        "lng": 13.6559,
        "maintenance_status": 2,
        "property_value": 79000
      },
      "properties": {
        "property_value_risked_avalanche": 0,
        "property_value_risked_blaze": 43450,
        "property_value_risked_coastal_flooding": 0,
        "property_value_risked_coastline_erosion": 0,
        "property_value_risked_cold_wave": 0,
        "property_value_risked_drought": 0,
        "property_value_risked_earthquake": 40384.8,
        "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": 52930,
        "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
      }
    },
    {
      "asset": {
        "construction_year": 1900,
        "floor": 0,
        "id_immobile": "IMMO_SAMPLE_3",
        "lat": 43.6869,
        "lng": 10.546,
        "maintenance_status": 2,
        "property_value": 570000
      },
      "properties": {
        "property_value_risked_avalanche": 0,
        "property_value_risked_blaze": 450300,
        "property_value_risked_coastal_flooding": 0,
        "property_value_risked_coastline_erosion": 0,
        "property_value_risked_cold_wave": 0,
        "property_value_risked_drought": 0,
        "property_value_risked_earthquake": 250800,
        "property_value_risked_flood": 188100,
        "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": 381900,
        "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
      }
    }
  ]
}