# @mapbox/vt2geojson

> Dump vector tiles to GeoJSON

Latest version **1.1.5** (published 2017-05-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install @mapbox/vt2geojson
pnpm add @mapbox/vt2geojson
yarn add @mapbox/vt2geojson
bun add @mapbox/vt2geojson
```

Provides the command `vt2geojson`.

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.5 |
| Published | 2017-05-10 |
| First published | 2017-02-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 156 |
| Author | John Firebaugh |
| Maintainers | aag6z, asheemmamoowala, jcsg, michaelsteffen, ajashton, patjouk, drboyer, andygol, flippmoke, ilyasaf, deniskoronchik, peterqliu, mapbox-machine-user, rasagy, chetangowda, upendrayadav, calfarome, ridixcr, oliikit, allierowan, richrico, dannykath, samely, nikhilprabhakar, fa7c0n, boblannon, sarahkleins, sgillies, lukasmartinelli, nammala, lndsay, anandthakker, chrisloer, kepta, kronick, manoharuss, aparlato, yunjieli, bsrinivasa, aarthykc, springmeyer, dasulit, maning, captainbarbosa, miles-dev, mourner, chaupow, oxidase, rumc, vincents, tony-cj, planemad, themarex, l-r, uvollmer, aliceykuo, ansis, oini, virginiayung, karitotp, srividyacb, perrygeo, colleenmcginnis, natslaughter, nickcordella, benjamintd, enf, kaibot3000, pdgoodman, msirenko, saikia.abhishek, jothirnadh, ryan-baumann, danswick, lily-chai, amishas157, k-mahoney, bkowshik, alinapaz, dnomadb, lyzidiamond, freenerd, gretacb, mateov, mayaqgao, camillacaros, samanbb, bhousel, danieljh, katydecorah, ajithranka, pratikyadav, morganherlocker, jacquestardie, mollymerp, jfirebaugh, tcql, rub21, kkaefer, brendanmcfarland, mokob, laurier, karenzshea, davidtheclark, amyleew, ian29, nickidlugash, jrpruit1, zmully, scothis, mcwhittemore, isiyu, xrwang, ghoshkaj, alulsh, emilymcafee, mapsam, lxbarth, willwhite, batpad, geohacker, arunasank, kaidalgleish, mattficke, apendleton, ingalls, sbma44, danpat, emilymdubois, yhahn, ianshward, miccolis, rclark, dthompson, lbud, bsudekum, tristen, mapbox-admin |

## Links

- npm: https://www.npmjs.com/package/@mapbox/vt2geojson
- Repository: https://github.com/mapbox/vt2geojson
- Issues: https://github.com/mapbox/vt2geojson/issues
- npm.io page: https://npm.io/package/@mapbox/vt2geojson

## Dependencies (4)

- [pbf](https://npm.io/package/pbf.md) ^1.3.5
- [yargs](https://npm.io/package/yargs.md) ^3.27.0
- [request](https://npm.io/package/request.md) ^2.64.0
- [vector-tile](https://npm.io/package/vector-tile.md) git+https://github.com/mapbox/vector-tile-js.git#classify-rings

## Recent versions

- 1.1.5 (latest) — 2017-05-10
- 1.1.4 — 2017-05-10
- 1.1.3 — 2017-04-21
- 1.1.2 — 2017-04-21
- 1.1.1 — 2017-04-21
- 1.1.0 — 2017-02-27

## README

Dump vector tiles to GeoJSON from remote URLs or local system files.

## Installation

```
npm install -g @mapbox/vt2geojson
```

## Usage

Node.js

```javascript
var vt2geojson = require('@mapbox/vt2geojson');

// remote file
vt2geojson({
    uri: 'http://api.example.com/9/150/194.mvt',
    layer: 'layer_name'
}, function (err, result) {
    if (err) throw err;
    console.log(result); // => GeoJSON FeatureCollection
});

// local file
vt2geojson({
    uri: './local/file/buffer.mvt',
    layer: 'layer_name',
    z: 9,
    x: 150,
    y: 194
}, function (err, result) {
    if (err) throw err;
    console.log(result); // => GeoJSON FeatureCollection
});
```

CLI

```
Usage: vt2geojson [options] URI

Options:
  -l, --layer  include only the specified layer
  -x           tile x coordinate (normally inferred from the URI)
  -y           tile y coordinate (normally inferred from the URI)
  -z           tile z coordinate (normally inferred from the URI)
  -h, --help   Show help  [boolean]

Examples:
  vt2geojson --layer state_label https://api.mapbox.com/v4/mapbox.mapbox-streets-v6/9/150/194.vector.pbf?access_token=${MAPBOX_ACCESS_TOKEN}
```

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