{"source":"forurensning","operation":"find_industrial_facilities","description":"Permitted industrial facilities from Milj\u00f8direktoratet's register. Signature: find_industrial_facilities(lat: decimal number, decimal degrees (WGS84), optional, default None; lon: decimal number, decimal degrees (WGS84), optional, default None; radius_km: decimal number, kilometres, optional, default 5; organization_id: string, optional, default None; name: string, optional, default None; active_only: yes/no, optional, default False; limit: integer, items, optional, default 50; offset: integer, items, optional, default 0).","signature":"find_industrial_facilities(lat: decimal number, decimal degrees (WGS84), optional, default None; lon: decimal number, decimal degrees (WGS84), optional, default None; radius_km: decimal number, kilometres, optional, default 5; organization_id: string, optional, default None; name: string, optional, default None; active_only: yes/no, optional, default False; limit: integer, items, optional, default 50; offset: integer, items, optional, default 0)","parameters":[{"name":"lat","type":"number","schema":{"anyOf":[{"type":"number"},{"type":"null"}]},"required":false,"default":null,"description":"Centre coordinate (WGS84) for a radius search. Give both or neither. Unit: decimal degrees (WGS84).","unit":"decimal degrees (WGS84)"},{"name":"lon","type":"number","schema":{"anyOf":[{"type":"number"},{"type":"null"}]},"required":false,"default":null,"description":"Centre coordinate (WGS84) for a radius search. Give both or neither. Unit: decimal degrees (WGS84).","unit":"decimal degrees (WGS84)"},{"name":"radius_km","type":"number","schema":{"type":"number"},"required":false,"default":5,"description":"Radius in km around lat/lon, 0.1-50 (default 5). Used only with lat/lon. Unit: kilometres.","unit":"kilometres"},{"name":"organization_id","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"9-digit organisasjonsnummer of the operator.","unit":null},{"name":"name","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Part of the facility name, case-insensitive.","unit":null},{"name":"active_only","type":"boolean","schema":{"type":"boolean"},"required":false,"default":false,"description":"Keep only facilities with status \"Aktiv\" (the other value is \"Nedlagt\").","unit":null},{"name":"limit","type":"integer","schema":{"type":"integer"},"required":false,"default":50,"description":"Max facilities to return, 1-500 (default 50). Unit: items.","unit":"items"},{"name":"offset","type":"integer","schema":{"type":"integer"},"required":false,"default":0,"description":"Results to skip before the first one returned (default 0); with limit, pages through every match. Unit: items.","unit":"items"}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/forurensning/find_industrial_facilities?lat={lat}&lon={lon}&radius_km=5&organization_id={organization_id}&name={name}&active_only=false&limit=50&offset=0","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"count":{"type":"integer"},"facilities":{"type":"array","items":{"type":"object","properties":{"id":{"type":["integer","string","null"]},"number":{"type":["string","null"]},"name":{"type":["string","null"]},"organization_id":{"type":["string","null"]},"responsible_unit":{"type":["string","null"]},"authority":{"type":["string","null"]},"municipality":{"type":["string","null"]},"municipality_number":{"type":["string","null"]},"type":{"type":["string","null"]},"status":{"type":["string","null"]},"emits_to_air":{"type":"boolean"},"emits_to_water":{"type":"boolean"},"last_reported_year":{"type":["integer","null"]},"industry":{"type":["string","null"]},"factsheet_url":{"type":["string","null"],"format":"uri"},"lat":{"type":["number","null"]},"lon":{"type":["number","null"]},"distance_km":{"type":["number","null"]}},"additionalProperties":false,"required":["emits_to_air","emits_to_water"]}}},"additionalProperties":false,"required":["count","facilities"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"projected","entity_types":["organization","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"],"retryable":false},"429":{"codes":["RATE_LIMITED","GATEWAY_RATE_LIMITED"],"retryable":true},"503":{"codes":["SOURCE_UNAVAILABLE"],"retryable":true},"500":{"codes":["INTERNAL_ERROR"],"retryable":true}}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/forurensning/find_industrial_facilities/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/forurensning/find_industrial_facilities","source":"https://allemannsdata.com/wiki/api/v1/kilder/forurensning","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["count","facilities","facilities[].id","facilities[].number","facilities[].name","facilities[].organization_id","facilities[].responsible_unit","facilities[].authority","facilities[].municipality","facilities[].municipality_number","facilities[].type","facilities[].status","facilities[].emits_to_air","facilities[].emits_to_water","facilities[].last_reported_year","facilities[].industry","facilities[].factsheet_url","facilities[].lat","facilities[].lon","facilities[].distance_km"],"output_fields_truncated":false,"canonical_field_aliases":{"identifier":["facilities[].id"],"name":["facilities[].name"],"latitude":["facilities[].lat"],"longitude":["facilities[].lon"]},"response_example":{"source":"forurensning","operation":"find_industrial_facilities","parameters":{"lat":59.91,"lon":10.75,"radius_km":5,"organization_id":"example-id","name":"Example","active_only":false,"limit":50,"offset":0},"data":{"count":1,"facilities":[{"id":1,"number":"example value","name":"Example","organization_id":"example-id","responsible_unit":"example value","authority":"example value","municipality":"example value","municipality_number":"example value","type":"example value","status":"example value","emits_to_air":true,"emits_to_water":true,"last_reported_year":1,"industry":"example value","factsheet_url":"https://example.invalid/resource","lat":59.91,"lon":10.75,"distance_km":1.0}]},"entities":[{"type":"organization","id":"example-id","source":"forurensning","description":"Organization used as the operation input."}],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"forurensning","name":"Pollution registers","description":"Industrial facilities with discharge permits and registered contaminated ground from Milj\u00f8direktoratet.","cache_ttl_seconds":3600,"documentation":"https://www.miljodirektoratet.no/"}]},"_provenance":{"data":{"source":"forurensning","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/forurensning"},"entities":{"source":"forurensning","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/forurensning","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/forurensning/find_industrial_facilities","source":"https://allemannsdata.com/wiki/api/v1/kilder/forurensning","wiki":"https://allemannsdata.com/wiki/kilder/forurensning/find_industrial_facilities/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
