{"name":"tilebelt","version":"0.5.2","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","benchmark":"~1.0.0"},"dependencies":{"turf-bbox-polygon":"^0.1.5"},"_id":"tilebelt@0.5.2","_shasum":"2fa536e25bac36ae713ab0215c4cca21c7b74300","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"mapbox","email":"accounts@mapbox.com"},"maintainers":[{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"ajashton","email":"aj.ashton@gmail.com"},{"name":"lxbarth","email":"alex@developmentseed.org"},{"name":"mikemorris","email":"michael.patrick.morris@gmail.com"},{"name":"ianshward","email":"ian@mapbox.com"},{"name":"mourner","email":"agafonkin@gmail.com"},{"name":"tristen","email":"tristen.brown@gmail.com"},{"name":"ingalls","email":"nicholas.ingalls@gmail.com"},{"name":"ansis","email":"ansis.brammanis@gmail.com"},{"name":"jfirebaugh","email":"john.firebaugh@gmail.com"},{"name":"miccolis","email":"jeff@miccolis.net"},{"name":"gretacb","email":"carol@mapbox.com"},{"name":"aaronlidman","email":"aaronlidman@gmail.com"},{"name":"camilleanne","email":"camille@mapbox.com"},{"name":"rclark","email":"ryan.clark.j@gmail.com"},{"name":"mapbox","email":"accounts@mapbox.com"},{"name":"willwhite","email":"will@mapbox.com"},{"name":"springmeyer","email":"dane@mapbox.com"},{"name":"kkaefer","email":"kkaefer@gmail.com"},{"name":"dthompson","email":"dthompson@gmail.com"},{"name":"yhahn","email":"young@developmentseed.org"},{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"2fa536e25bac36ae713ab0215c4cca21c7b74300","tarball":"http://registry-npm.ywwl.com/tilebelt/download/tilebelt-0.5.2.tgz","integrity":"sha512-mcmJJTtYy/tzYjtIy8sGUcW8mtxsalsn9xbGFuSai3D9XN75Uw4c3UHTuGJL/yAivlbL3IBcZdaRf2wzaT306Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFQfsjD7Du8hUB9Kpm7XbcbR8wX1h+JIzQYDEA0q0OgOAiEA5MoDCr7offELBCdhdxP/CkkKisOeetxSTdA3GzHoj6k="}],"size":4039,"noattachment":false,"key":"/tilebelt/-/tilebelt-0.5.2.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":1410916283134,"_cnpm_publish_time":1410916283134,"dist-tags":{"latest":"1.0.1"}}