# geojsonDecoder

The built-in decoder for GeoJSON feature collections, and for documents
that are GeoJSON-like (a `features` list of objects with a `geometry`).
Fields are read by dotted path from each feature, so the same decoder
serves any provider. Only strings, numbers and booleans are kept; any
other value becomes null. A feature with no usable `id` gets its position
in the list. Features without a drawable geometry are skipped.

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

## Signature

```ts
import { geojsonDecoder } from "@mapcairn/core";
 
geojsonDecoder: Decoder
```

## Throws

- When the document has no `features` list.

## See also

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

Source: [packages/core/src/layers/decoders.ts:106](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/decoders.ts#L106)
