# slippy-bbox

> calculate a bounding box for a slippy map (x,y,zoom) coordinate

Latest version **1.0.0** (published 2018-08-29) · 0 weekly downloads

## Install

```sh
npm install slippy-bbox
pnpm add slippy-bbox
yarn add slippy-bbox
bun add slippy-bbox
```

## 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.0 |
| Published | 2018-08-29 |
| First published | 2018-08-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | substack |
| Keywords | slippy, geo, gis, mbtile, bbox, bounding box, coordinates, wsen |

## Links

- npm: https://www.npmjs.com/package/slippy-bbox
- npm.io page: https://npm.io/package/slippy-bbox

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-08-29

## README

# slippy-bbox

calculate a bounding box for a [slippy map][] (x,y,zoom) coordinate

implementation based on [this java code](https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Tile_bounding_box)

[slippy map]: https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames

# example

``` js
var slippyBBox = require('slippy-bbox')
var bbox = slippyBBox(2,14,5) // x,y,zoom
console.log(bbox) // west,south,east,north
```

output:

```
[ -157.5, 11.178401873711792, -146.25, 21.943045533438177 ]
```

# api

``` js
var slippyBBox = require('slippy-bbox')
```

## var bbox = slippyBBox(x, y, zoom)

Calculate `bbox`, a `[west,south,east,north]` array in lon/lat degrees for the
slippy map coordinates `x,y,zoom`.

# install

```
npm install slippy-bbox
```

# license

BSD

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