{"source":"naturbase","operation":"get_nature_areas_geojson","description":"Protected areas and mapped nature types around a coordinate as GeoJSON\npolygons, ready to draw on a map. Signature: get_nature_areas_geojson(lat: decimal number, decimal degrees (WGS84), required; lon: decimal number, decimal degrees (WGS84), required; radius_km: decimal number, kilometres, optional, default 2; datasets: string, optional, default None; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0).","signature":"get_nature_areas_geojson(lat: decimal number, decimal degrees (WGS84), required; lon: decimal number, decimal degrees (WGS84), required; radius_km: decimal number, kilometres, optional, default 2; datasets: 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":{"type":"number"},"required":false,"default":2,"description":"Half the box side in km, 0.1-10 (default 2). Unit: kilometres.","unit":"kilometres"},{"name":"datasets","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Comma-separated datasets to include (default both): protected_areas (verneomr\u00e5der), nature_types (naturtyper etter NiN).","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/naturbase/get_nature_areas_geojson?lat={lat}&lon={lon}&radius_km=2&datasets={datasets}&limit=25&offset=0","example_url":"https://allemannsdata.com/wiki/api/v1/kilder/naturbase/get_nature_areas_geojson?lat=61.9&lon=9.75&radius_km=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":{"dataset":{"type":"string","enum":["protected_areas","nature_types"]},"id":{"type":"string"},"name":{"type":"string"},"protection_type":{"type":"string"},"iucn":{"type":"string"},"municipality":{"type":"string"},"protected_date":{"type":"string","format":"date"},"management_authority":{"type":"string"},"factsheet":{"type":"string","format":"uri"},"area_name":{"type":"string"},"nature_type":{"type":"string"},"nature_type_code":{"type":"string"},"locality_quality":{"type":["integer","string"]},"ecosystem":{"type":"string"},"mapped_year":{"type":"integer"}},"additionalProperties":false,"required":["dataset"]}},"additionalProperties":false,"required":["type","geometry","properties"]}},"count":{"type":"integer"},"truncated":{"type":"boolean"}},"additionalProperties":false,"required":["type","bbox","features","count","truncated"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"projected","entity_types":["protected_area","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/naturbase/get_nature_areas_geojson","operation":"https://allemannsdata.com/wiki/api/v1/kilder/naturbase/get_nature_areas_geojson","source":"https://allemannsdata.com/wiki/api/v1/kilder/naturbase","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.dataset","features[].properties.id","features[].properties.name","features[].properties.protection_type","features[].properties.iucn","features[].properties.municipality","features[].properties.protected_date","features[].properties.management_authority","features[].properties.factsheet","features[].properties.area_name","features[].properties.nature_type","features[].properties.nature_type_code","features[].properties.locality_quality","features[].properties.ecosystem","features[].properties.mapped_year","count","truncated"],"output_fields_truncated":false,"canonical_field_aliases":{"identifier":["features[].properties.id"],"name":["features[].properties.name"]},"response_example":{"source":"naturbase","operation":"get_nature_areas_geojson","parameters":{"lat":61.9,"lon":9.75,"radius_km":5,"limit":25,"offset":0},"data":{"type":"FeatureCollection","bbox":[1.0],"features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[null]},"properties":{"dataset":"protected_areas","id":"example-id","name":"Example","protection_type":"example value","iucn":"example value","municipality":"example value","protected_date":"2026-01-15","management_authority":"example value","factsheet":"https://example.invalid/resource","area_name":"Example","nature_type":"example value","nature_type_code":"example value","locality_quality":1,"ecosystem":"example value","mapped_year":1}}],"count":1,"truncated":true},"entities":[{"type":"place","id":"61.9,9.75","name":"61.9, 9.75","source":"naturbase","description":"Coordinate used as the operation input.","coordinates":{"lat":61.9,"lon":9.75,"crs":"WGS84"}}],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"naturbase","name":"Naturbase","description":"Protected areas (verneomr\u00e5der) and mapped nature types (naturtyper etter NiN) from Milj\u00f8direktoratet, also as GeoJSON polygons for maps.","cache_ttl_seconds":300,"documentation":"https://kartkatalog.miljodirektoratet.no/"}]},"_provenance":{"data":{"source":"naturbase","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/naturbase"},"entities":{"source":"naturbase","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/naturbase","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/naturbase/get_nature_areas_geojson","source":"https://allemannsdata.com/wiki/api/v1/kilder/naturbase","wiki":"https://allemannsdata.com/wiki/kilder/naturbase/get_nature_areas_geojson/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
