{"name":"tilebelt","version":"0.1.1","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":"365145294ee25d19915895dff2377c26c3357680","_id":"tilebelt@0.1.1","_shasum":"26de7ee93d0c7695c770462b870b5e403e849021","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"}],"dist":{"shasum":"26de7ee93d0c7695c770462b870b5e403e849021","tarball":"http://registry-npm.ywwl.com/tilebelt/download/tilebelt-0.1.1.tgz","integrity":"sha512-8Rbf5Z6Iy9oVsCcaqEPjlQJtPRJYDclX2KafKIyjupdjpJpMm9TqCihRqs6g9+AUICBSXIVVOttMbGYQ7DvgdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQPLV03juHNhUNyMqY+ogoqf/6kadzv3/qjdBnEpB1IQIhAKFyMEijoTS08l2rguPEh/l2KGbE7dvPBFnwvkfVIDSv"}],"size":3396,"noattachment":false,"key":"/tilebelt/-/tilebelt-0.1.1.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":1408042518278,"_cnpm_publish_time":1408042518278,"dist-tags":{"latest":"1.0.1"}}