{"source":"vannforekomster","operation":"get_water_bodies_geojson","description":"Water bodies around a coordinate as GeoJSON, with their Water Framework\nDirective status, ready to draw on a map: rivers as lines, lakes and\ncoastal waters as polygons. Signature: get_water_bodies_geojson(lat: decimal number, decimal degrees (WGS84), required; lon: decimal number, decimal degrees (WGS84), required; radius_km: decimal number, kilometres, optional, default 2; category: string, optional, default None; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0).","signature":"get_water_bodies_geojson(lat: decimal number, decimal degrees (WGS84), required; lon: decimal number, decimal degrees (WGS84), required; radius_km: decimal number, kilometres, optional, default 2; category: 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":10,"minimum":0.1,"type":"number"},"required":false,"default":2,"description":"Half the box side in km, 0.1-10 (default 2). Unit: kilometres.","unit":"kilometres"},{"name":"category","type":"string","schema":{"anyOf":[{"enum":["river","elv","lake","innsjo","innsj\u00f8","coast","kyst"],"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"river, lake or coast (also elv, innsj\u00f8, kyst). Default: all three.","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/vannforekomster/get_water_bodies_geojson?lat={lat}&lon={lon}&radius_km=2&category={category}&limit=25&offset=0","example_url":"https://allemannsdata.com/wiki/api/v1/kilder/vannforekomster/get_water_bodies_geojson?lat=63.43&lon=10.4","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","LineString","MultiLineString"]},"coordinates":{"type":"array"}},"additionalProperties":false,"required":["type","coordinates"]},"properties":{"type":"object","properties":{"category":{"type":"string","enum":["river","lake","coast"]},"id":{"type":"string"},"local_id":{"type":"string"},"name":{"type":"string"},"ecological_status":{"type":"string"},"ecological_precision":{"type":"string"},"chemical_status":{"type":"string"},"risk":{"type":"string"},"water_region":{"type":"string"},"water_area":{"type":"string"},"factsheet":{"type":"string","format":"uri"}},"additionalProperties":false,"required":["category"]}},"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":["water_body","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/vannforekomster/get_water_bodies_geojson/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/vannforekomster/get_water_bodies_geojson","source":"https://allemannsdata.com/wiki/api/v1/kilder/vannforekomster","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.category","features[].properties.id","features[].properties.local_id","features[].properties.name","features[].properties.ecological_status","features[].properties.ecological_precision","features[].properties.chemical_status","features[].properties.risk","features[].properties.water_region","features[].properties.water_area","features[].properties.factsheet","count","truncated"],"output_fields_truncated":false,"canonical_field_aliases":{"identifier":["features[].properties.id"],"name":["features[].properties.name"]},"response_example":{"source":"vannforekomster","operation":"get_water_bodies_geojson","parameters":{"lat":63.43,"lon":10.4,"limit":25,"offset":0},"data":{"type":"FeatureCollection","bbox":[1.0],"features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[null]},"properties":{"category":"river","id":"example-id","local_id":"example-id","name":"Example","ecological_status":"example value","ecological_precision":"example value","chemical_status":"example value","risk":"example value","water_region":"example value","water_area":"example value","factsheet":"https://example.invalid/resource"}}],"count":1,"truncated":true},"entities":[{"type":"place","id":"63.43,10.4","name":"63.43, 10.4","source":"vannforekomster","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":"vannforekomster","name":"Vann-nett water bodies","description":"Water Framework Directive status (ecological and chemical) for Norwegian rivers, lakes and coastal water bodies, from Vann-nett, also as GeoJSON shapes for maps.","publisher":"Milj\u00f8direktoratet","license":"https://data.norge.no/nlod/en/2.0/","cache_ttl_seconds":300,"documentation":"https://vann-nett.no/"}]},"_provenance":{"data":{"source":"vannforekomster","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/vannforekomster"},"entities":{"source":"vannforekomster","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/vannforekomster","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/vannforekomster/get_water_bodies_geojson","source":"https://allemannsdata.com/wiki/api/v1/kilder/vannforekomster","wiki":"https://allemannsdata.com/wiki/kilder/vannforekomster/get_water_bodies_geojson/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
