Skip to content

Danger

POST /api/danger

Information (KPI 0 to 1) about the dangers in a single point of interest

Example Request

curl --location 'http://ws-rischio.realitycs.it/api/danger' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
   "lat" : 41.8967068,
   "lng" : 12.4822025,
   "id_immobile" : "IMMO_SAMPLE_1",
   "nation": "IT"
}
'

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

Example Response

{
  "_metadata": {
    "message": "",
    "query": {},
    "status": 200
  },
  "items": [
    {
      "asset": {
        "id_immobile": "IMMO_SAMPLE_1",
        "lat": 41.8967068,
        "lng": 12.4822025
      },
      "properties": {
        "avalanche": 0,
        "blaze": 0.68,
        "coastal_flooding": 0,
        "coastline_erosion": 0.7,
        "cold_wave": 0.04,
        "drought": 0.44,
        "earthquake": 0.44,
        "flood": 0,
        "glacial_lake_collapse": 0,
        "heat_wave": 0.47,
        "heavy_rainfall": 0.22,
        "landslide": 0,
        "ocean_acidification": 0,
        "permafrost_thaw": 0,
        "rain_regime_change": 0.24,
        "saltwater_intrusion": 0,
        "sandstorm": 0.15,
        "sea_level_rise": 0,
        "snow_storm": 0,
        "soil_degradation": 1,
        "soil_erosion": 0.01,
        "subsidence": 0.83,
        "temperature_regime_change": 0.24,
        "thermal_stress": 0.89,
        "volcano": 0,
        "water_stress": 0.65,
        "wind_regime_change": 0.47,
        "windstorm": 0.78
      }
    }
  ]
}