{"name":"tilebelt","version":"0.1.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":"d68e114141ab2e6e66a99346379e948ee7384a51","_id":"tilebelt@0.1.0","_shasum":"21dca9a6820febd6de589a754bab384cde6df720","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"}],"dist":{"shasum":"21dca9a6820febd6de589a754bab384cde6df720","tarball":"http://registry-npm.ywwl.com/tilebelt/download/tilebelt-0.1.0.tgz","integrity":"sha512-5Y4AcqpF4h5hizuIKDHy6zDgs1jgtuRCKRHHz3vzPHbTzFxqHThhhk5T0vP7ZNFbfABmxYG7SqB1rPO9O3HfSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvmviGC3KG4TFXn3tOplTvrh6AO0PJuUT/bldJp2EyWAIgP4gzDax3zFJfW3BRmwjDJ0KGKo5BJUIWbQw4O8HqmPs="}],"size":3228,"noattachment":false,"key":"/tilebelt/-/tilebelt-0.1.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":1408040227370,"_cnpm_publish_time":1408040227370,"dist-tags":{"latest":"1.0.1"}}