{"source":"naturfare","operation":"get_hazard_zones_geojson","description":"NVE natural-hazard zones around a coordinate as GeoJSON polygons, ready to\ndraw on a map (flood, quick clay, landslide, snow avalanche, rockfall). Signature: get_hazard_zones_geojson(lat: decimal number, decimal degrees (WGS84), required; lon: decimal number, decimal degrees (WGS84), required; radius_km: decimal number, kilometres, optional, default 1; hazards: string, optional, default None; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0).","signature":"get_hazard_zones_geojson(lat: decimal number, decimal degrees (WGS84), required; lon: decimal number, decimal degrees (WGS84), required; radius_km: decimal number, kilometres, optional, default 1; hazards: string, optional, default None; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0)","parameters":[{"name":"lat","type":"number","schema":{"type":"number"},"required":true,"default":null,"description":"Latitude (WGS84) of the centre, between -90 and 90. Unit: decimal degrees (WGS84).","unit":"decimal degrees (WGS84)"},{"name":"lon","type":"number","schema":{"type":"number"},"required":true,"default":null,"description":"Longitude (WGS84) of the centre, between -180 and 180. Unit: decimal degrees (WGS84).","unit":"decimal degrees (WGS84)"},{"name":"radius_km","type":"number","schema":{"maximum":5,"minimum":0.1,"type":"number"},"required":false,"default":1,"description":"Half the box side in km, 0.1-5 (default 1). Unit: kilometres.","unit":"kilometres"},{"name":"hazards","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Comma-separated hazard keys to include (default all): flood_screening, flood_zones, quick_clay_screening, quick_clay_zone, landslide_hazard_zones, snow_avalanche_screening, rockfall_screening.","unit":null},{"name":"limit","type":"integer","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"display_type":"integer","required":false,"default":25,"description":"Maximum list items returned by the gateway (default 25, maximum 100).","unit":"items"},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page.","unit":"items"}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/naturfare/get_hazard_zones_geojson?lat={lat}&lon={lon}&radius_km=1&hazards={hazards}&limit=25&offset=0","example_url":"https://allemannsdata.com/wiki/api/v1/kilder/naturfare/get_hazard_zones_geojson?lat=63.43&lon=10.4&radius_km=0.5","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"type":{"type":"string","enum":["FeatureCollection"]},"bbox":{"type":"array","items":{"type":"number"}},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["Feature"]},"geometry":{"type":"object","properties":{"type":{"type":"string","enum":["Polygon","MultiPolygon"]},"coordinates":{"type":"array"}},"additionalProperties":false,"required":["type","coordinates"]},"properties":{"type":"object","properties":{"hazard":{"type":"string"},"label":{"type":"string"},"return_period":{"type":"integer"},"zone":{"type":"string","enum":["release","runout"]},"sikkerhetsklasse":{"type":["string","null"]},"name":{"type":["string","null"]},"faregrad":{"type":["string","null"]},"konsekvensklasse":{"type":["integer","null"]},"risikoklasse":{"type":["integer","null"]},"kommune":{"type":["string","null"]},"report_url":{"type":["string","null"],"format":"uri"}},"additionalProperties":false,"required":["hazard","label"]}},"additionalProperties":false,"required":["type","geometry","properties"]}},"count":{"type":"integer"},"truncated":{"type":"boolean"},"unavailable":{"type":"array","items":{"type":"string"}},"note":{"type":["string","null"]}},"additionalProperties":false,"required":["type","bbox","features","count","truncated","unavailable","note"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"projected","entity_types":["place"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"error_contract":{"scope":"top-level HTTP error response; never part of a success payload","schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"details":{"type":"object"}},"additionalProperties":false,"required":["code","message","retryable"]},"suggestion":{"type":"string"},"_meta":{"type":"object","properties":{"retrieved_at":{"type":"string","format":"date-time"},"language":{"type":"string","const":"en"},"content_languages":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"object"}}},"required":["retrieved_at","language","content_languages","sources"]},"_links":{"type":"object","properties":{"self":{"type":"string","format":"uri"},"api_index":{"type":"string","format":"uri"},"feedback":{"type":"string","format":"uri"}},"required":["self","api_index","feedback"],"additionalProperties":false}},"additionalProperties":false,"required":["error","suggestion","_meta","_links"]},"statuses":{"400":{"codes":["MISSING_PARAMETER","INVALID_PARAMETER","INVALID_REQUEST"],"retryable":false},"404":{"codes":["SOURCE_NOT_FOUND","OPERATION_NOT_FOUND","ENTITY_NOT_FOUND","ENDPOINT_NOT_FOUND"],"retryable":false},"405":{"codes":["METHOD_NOT_ALLOWED"],"retryable":false},"429":{"codes":["RATE_LIMITED","GATEWAY_RATE_LIMITED"],"retryable":true},"503":{"codes":["SOURCE_UNAVAILABLE"],"retryable":true},"500":{"codes":["INTERNAL_ERROR"],"retryable":false}}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/naturfare/get_hazard_zones_geojson/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/naturfare/get_hazard_zones_geojson","source":"https://allemannsdata.com/wiki/api/v1/kilder/naturfare","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["type","bbox","features","features[].type","features[].geometry","features[].geometry.type","features[].geometry.coordinates","features[].properties","features[].properties.hazard","features[].properties.label","features[].properties.return_period","features[].properties.zone","features[].properties.sikkerhetsklasse","features[].properties.name","features[].properties.faregrad","features[].properties.konsekvensklasse","features[].properties.risikoklasse","features[].properties.kommune","features[].properties.report_url","count","truncated","unavailable","note"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["features[].properties.label","features[].properties.name"]},"response_example":{"source":"naturfare","operation":"get_hazard_zones_geojson","parameters":{"lat":63.43,"lon":10.4,"radius_km":0.5,"limit":25,"offset":0},"data":{"type":"FeatureCollection","bbox":[1.0],"features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[null]},"properties":{"hazard":"example value","label":"Example","return_period":1,"zone":"release","sikkerhetsklasse":"example value","name":"Example","faregrad":"example value","konsekvensklasse":1,"risikoklasse":1,"kommune":"example value","report_url":"https://example.invalid/resource"}}],"count":1,"truncated":true,"unavailable":["example value"],"note":"example value"},"entities":[{"type":"place","id":"63.43,10.4","name":"63.43, 10.4","source":"naturfare","description":"Coordinate used as the operation input.","coordinates":{"lat":63.43,"lon":10.4,"crs":"WGS84"}}],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"naturfare","name":"Natural hazards (NVE)","description":"Flood, quick-clay, landslide, snow-avalanche, rockfall and debris-flow screening at a point, hazard-zone polygons as GeoJSON for maps, plus registered landslide events, from NVE's hazard maps.","publisher":"Norges vassdrags- og energidirektorat (NVE)","license":"https://data.norge.no/nlod/en/2.0/","cache_ttl_seconds":3600,"documentation":"https://www.nve.no/naturfare/"}]},"_provenance":{"data":{"source":"naturfare","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/naturfare"},"entities":{"source":"naturfare","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/naturfare","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/naturfare/get_hazard_zones_geojson","source":"https://allemannsdata.com/wiki/api/v1/kilder/naturfare","wiki":"https://allemannsdata.com/wiki/kilder/naturfare/get_hazard_zones_geojson/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
