# FeedSource

A feed: one JSON document of point features, fetched when the layer is on.

This is an interface exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { FeedSource } from "@mapcairn/core";
 
interface FeedSource
```

## Properties

### cacheSeconds

```ts
readonly cacheSeconds?: number;
```

The least time, in seconds (at most 3600), a response is reused in this
page, for providers that send no `Cache-Control` max-age. Layers split
from one feed then cost one request. Nothing is stored beyond the page.

### decoder

```ts
readonly decoder: string;
```

The name of a registered decoder, such as `geojson`.

### fields

```ts
readonly fields: FieldMap;
```

Where each decoded field is read from in a raw feature.

### filter

```ts
readonly filter?: FeatureFilter;
```

Drops features that do not match, before they are drawn or listed.

### kind

```ts
readonly kind: "feed";
```

Tells a feed from a query source.

### url

```ts
readonly url: string;
```

A URL template over control values and derived variables.

## See also

- [`FieldMap`](https://docs.mapcairn.com/api/core/FieldMap.md)
- [`FeatureFilter`](https://docs.mapcairn.com/api/core/FeatureFilter.md)

Source: [packages/core/src/layers/definition.ts:221](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/definition.ts#L221)
