{"name":"@mapbox/tilebelt","version":"1.0.1","description":"simple tile utilities","main":"index.js","scripts":{"test":"eslint *.js && tap test.js --cov","bench":"node bench.js"},"repository":{"type":"git","url":"git+https://github.com/mapbox/tilebelt.git"},"keywords":["tile","map","geojson"],"author":{"name":"morganherlocker"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/tilebelt/issues"},"homepage":"https://github.com/mapbox/tilebelt","devDependencies":{"benchmark":"~1.0.0","eslint":"^1.3.1","tap":"^1.3.4"},"dependencies":{},"gitHead":"30537dbf4d22d823e534ec0272af748a6b3843ec","_id":"@mapbox/tilebelt@1.0.1","_shasum":"d57a1c4a5445e928dad720a828389a0a69db8818","_from":".","_npmVersion":"4.0.2","_nodeVersion":"4.6.2","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"dist":{"shasum":"d57a1c4a5445e928dad720a828389a0a69db8818","tarball":"http://registry-npm.ywwl.com/@mapbox/tilebelt/download/@mapbox/tilebelt-1.0.1.tgz","integrity":"sha512-62FkRJcrvxjH4FaqM8ePdK4TM9XcNkghaGlFnbdLbOgjk0FfQ5Pqr3QZkOOpuOLxMRMOsWsZfL3AcffiPCYBJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8mTmE6s9RMkCTz4atpqiDT5O1jdV4v6FeZPE78YjYigIhALTgzLPhwhLOXyN5YzCep1vZ2hCBG1KzrdVrPTGtS8TI"}],"size":22047,"noattachment":false,"key":"/@mapbox/tilebelt/-/@mapbox/tilebelt-1.0.1.tgz"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tilebelt-1.0.1.tgz_1480711299084_0.06478878273628652"},"directories":{},"readme":"tilebelt\n====\n[![Build Status](https://travis-ci.org/mapbox/tilebelt.svg?branch=master)](https://travis-ci.org/mapbox/tilebelt) [![Coverage Status](https://coveralls.io/repos/mapbox/tilebelt/badge.svg?branch=use-tap)](https://coveralls.io/r/mapbox/tilebelt?branch=use-tap)\n\nsimple [tile](http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames) utilities\n\n## install\n\n```bash\nnpm install @mapbox/tilebelt\n```\n\n## usage\n\n```js\nvar tilebelt = require('@mapbox/tilebelt');\n\nvar tile = [10,15,8] // x,y,z\n\nconsole.log(tilebelt.tileToGeoJSON(tile));\nconsole.log(tilebelt.getParent(tile));\n```\n\n## features\n\nfunction | description\n---|---\ntileToGeoJSON(tile) | get a geojson representation of a tile\ntileToBBOX(tile) | get the bbox of a tile\nbboxToTile(bbox) | get the smallest tile to cover a bbox\ngetChildren(tile) | get the 4 tiles one zoom level higher\ngetParent(tile) | get the tile one zoom level lower\ngetSiblings(tile) | get the 3 sibling tiles for a tile\nhasSiblings(tiles, tile) | check to see if an array of tiles contains a tiles siblings\nhasTile(tiles, tile) | check to see if an array of tiles contains a particular tile\ntilesEqual(tile1, tile2) | check to see if two tiles are the same\ntileToQuadkey(tile) | get the quadkey for a tile\nquadkeyToTile(quadkey) | get the tile for a quadkey\npointToTile(lon, lat, zoom) | get the tile for a point at a specified zoom level\npointToTileFraction(lon, lat, zoom) | get the precise fractional tile location for a point at a zoom level\n\n## tests\n\n```bash\nnpm test\n```\n\n## benchmarks\n\n```bash\nnpm run bench\n```\n","publish_time":1480711301061,"_cnpm_publish_time":1480711301061,"dist-tags":{"dev":"2.0.0-dev.1","latest":"2.0.3"}}