{"name":"tilebelt","version":"0.2.0","description":"simple tile utilities","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"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":{"tape":"^2.14.0"},"dependencies":{"turf-bbox-polygon":"^0.1.5"},"gitHead":"1cc1a902f1add9c1cf0253c5d5226439fca20afe","_id":"tilebelt@0.2.0","_shasum":"b5511fca4c653f530124ded067428b44e0325d22","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"}],"dist":{"shasum":"b5511fca4c653f530124ded067428b44e0325d22","tarball":"http://registry-npm.ywwl.com/tilebelt/download/tilebelt-0.2.0.tgz","integrity":"sha512-XBlJyc+7Iq47lVK6ZGLWIXHXMTRcn9rzrcc5pHXaZipZq+ZlMHjSmT8cYkH2EmHWevz8t66iwH50SmRq412cvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTIWeroGPiDY+Y7SCZgsjgi/BhhRVmaY8gi7brtwFWTAIhAKx/XuNFf7wUCtn1bmTET5Rd4LvC83A+kT7GMOwGaWXJ"}],"size":3552,"noattachment":false,"key":"/tilebelt/-/tilebelt-0.2.0.tgz"},"deprecated":"This module is now under the @mapbox namespace: install @mapbox/tilebelt instead","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 tilebelt\n```\n\n## usage\n\n```js\nvar tilebelt = require('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```","publish_time":1408381840212,"_cnpm_publish_time":1408381840212,"dist-tags":{"latest":"1.0.1"}}