# @mapbox/geojson-types

> Flow type declarations for [GeoJSON](https://tools.ietf.org/html/rfc7946).

Latest version **1.0.2** (published 2018-07-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install @mapbox/geojson-types
pnpm add @mapbox/geojson-types
yarn add @mapbox/geojson-types
bun add @mapbox/geojson-types
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-07-30 |
| First published | 2018-07-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mapbox-admin, mapbox-machine-user, mapbox-npm, mapbox-npm-01, mapbox-npm-02, mapbox-npm-03, mapbox-npm-04, mapbox-npm-05, mapbox-npm-06, mapbox-npm-07, mapbox-npm-08, mapbox-npm-09, mapbox-npm-advanced-actions, mapbox-npm-ci |

## Links

- npm: https://www.npmjs.com/package/@mapbox/geojson-types
- npm.io page: https://npm.io/package/@mapbox/geojson-types

## Recent versions

- 1.0.2 (latest) — 2018-07-30
- 1.0.1 — 2018-07-30
- 1.0.0 — 2018-07-30

## README

# geojson-types

Flow type declarations for [GeoJSON](https://tools.ietf.org/html/rfc7946).


## Install

```
npm install @mapbox/geojson-types
```

## Use

```js
// @flow

import type {
    GeoJSONFeatureCollection,
    GeoJSONFeature,

    // specific geometries
    GeoJSONPoint,
    GeoJSONLineString,
    GeoJSONPolygon,
    GeoJSONMultiPoint,
    GeoJSONMultiLineString,
    GeoJSONMultiPolygon,

    // any geometry
    GeoJSONGeometry,

    // any feature collection, feature, or geometry
    GeoJSON,
} from '@mapbox/geojson-types';

function doSomething(data: GeoJSON) {
    // ...
}
```

---
_Source: https://npm.io/package/@mapbox/geojson-types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
