{"name":"@mapbox/tilebelt","version":"1.0.2","description":"simple tile utilities","main":"index.js","scripts":{"test":"eslint *.js && tape test.js","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":"~2.1.4","eslint":"^7.8.1","eslint-config-mourner":"~2.0.3","tape":"^5.0.1"},"eslintConfig":{"extends":"mourner"},"dependencies":{},"gitHead":"876af65cfc68f152aeed2e514289e401c5d95196","_id":"@mapbox/tilebelt@1.0.2","_nodeVersion":"10.22.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-tGJN2VIgWrXqBTPIxFVklklIpcy6ss8W5ouq+cjNLXPXFraRaDR4Ice+5Q8/uLX+6aH23lWBMydOIn8PcdVcpA==","shasum":"32936c3acad3ea3e669bb083a598bcc7d74b4ec9","tarball":"http://registry-npm.ywwl.com/@mapbox/tilebelt/download/@mapbox/tilebelt-1.0.2.tgz","fileCount":7,"unpackedSize":18768,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWjznCRA9TVsSAnZWagAAH64P/A71zFYF9D18AwILeMxQ\nnSrH3/snReQg/SPR6ao7Y7mQoRrAZs1YYTMdTRFxjjPyylk+XymQBEHCI2vk\nvdjh9mYulXn8RljhqZR2NDiXiRmGeS/hU+X4yB+OXQiaARlGDQFYMU0adt6U\nYDuhgKZc0u1l+c0r7rIYi1onxadK1bqOHwL4RYrxMJFxZBPktyrL2WEeoJXy\njBcTZ0++rYlA8Vf/TYkEBe+7YapZZUvnjcCkhWa5T1MtyBA9azb8hlmEfqLl\nQHbGrn7X4zCzJxdoLxukmN+wLJg0s1SB/2uLrB67X3vQKUcLIBbEzoOrXU1h\ncwHmsOoM+UaCe6BI32c4iBWTmmDnwpMUhcF4KDS9QmxLc1vZGVczPTj4DeeH\nZBZzIimyYqVSWSZ3+U2sVQU4trDxh9/mpOUjddmzZtue9srt+KUZKVu/z0hn\n+7bnBVCZMieBn0e0v1KrS4bNyY9a1+rx0qD7g0porekT6t72m+QpViPL8qug\nLfiXLGBfs+tuxDrRUP2hzZxMsSbEmHswobVzDaPnPIjJKQW0X+GB1u9q9qPh\nldhxzvdgJWnKeD9tYqGJGvd2hf/qOCSe6+aZtKWm1XDnCTV5pt0+oTZhKZiy\nGHZPPt3rseD7kPqe1eiXWkXXc8Sx6BZFs2Jdmauo20lMIr4mhz3QNAF1VhOq\nl+aM\r\n=IKMM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/SqW2gh8XYkvm1aVEa2CFSCw1Bx03DWJxBOmtEbfjFAIhANYiTcmP74kXYOLeCJ2T/idbsaeSCOZoPi481LPCINJU"}],"size":5091,"noattachment":false,"key":"/@mapbox/tilebelt/-/@mapbox/tilebelt-1.0.2.tgz"},"maintainers":[{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-07","email":"accounts+npmjs-07@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-05","email":"accounts+npmjs-05@mapbox.com"},{"name":"mapbox-npm-06","email":"accounts+npmjs-06@mapbox.com"},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":"accounts+npmjs-advanced-actions@mapbox.com"},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-admin","email":"accounts@mapbox.com"},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"}],"_npmUser":{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tilebelt_1.0.2_1599749351180_0.5169398600663382"},"_hasShrinkwrap":false,"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":1599749351309,"_cnpm_publish_time":1599749351309,"dist-tags":{"dev":"2.0.0-dev.1","latest":"2.0.3"}}