# decodeFeeds

Decodes the responses to the requests `feedUrls` lists, as `decodeFeed`
does for one, and joins them in the order they came. A feature that more
than one response holds (one on the antimeridian can be in the box on each
side) is kept once, when its id and geometry are the same; a different
feature with the same id is kept under a new id. Each response is capped
at one more than a query layer's `maxFeatures` before they are joined, and
the cap applies to the whole again.

This is a function exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import { decodeFeeds } from "@mapcairn/core";
 
function decodeFeeds(definition: LayerDefinition, raws: readonly unknown[], decoders: DecoderRegistry): LayerFeature[];
```

## Parameters

- `definition` (`LayerDefinition`)
- `raws` (`readonly unknown[]`)
- `decoders` (`DecoderRegistry`)

## Returns

`LayerFeature[]`

## Throws

- `LayerError` `invalid` when any response cannot be decoded, and
   `empty` when no feature is left in any of them.

## See also

- [`LayerDefinition`](https://docs.mapcairn.com/api/core/LayerDefinition.md)
- [`DecoderRegistry`](https://docs.mapcairn.com/api/core/DecoderRegistry.md)
- [`LayerFeature`](https://docs.mapcairn.com/api/core/LayerFeature.md)

Source: [packages/core/src/layers/feed.ts:125](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/feed.ts#L125)
