{
  "_id": "@mapbox/tile-cover",
  "maintainers": [
    {
      "email": "yannick.meeus+npm+production+ci@mapbox.com",
      "name": "mbx-npm-ci-production"
    },
    {
      "email": "yannick.meeus+npm+staging+ci@mapbox.com",
      "name": "mbx-npm-ci-staging"
    },
    {
      "email": "yannick.meeus+npm+prod+advanced+actions@mapbox.com",
      "name": "mbx-npm-advanced-actions-production"
    },
    {
      "email": "yannick.meeus+npm+staging+advanced+actions@mapbox.com",
      "name": "mbx-npm-advanced-actions-staging"
    },
    {
      "email": "yannick.meeus+npm+prod+09@mapbox.com",
      "name": "mbx-npm-09-production"
    },
    {
      "email": "yannick.meeus+npm+prod+08@mapbox.com",
      "name": "mbx-npm-08-production"
    },
    {
      "email": "yannick.meeus+npm+prod+07@mapbox.com",
      "name": "mbx-npm-07-production"
    },
    {
      "email": "yannick.meeus+npm+prod+06@mapbox.com",
      "name": "mbx-npm-06-production"
    },
    {
      "email": "yannick.meeus+npm+prod+05@mapbox.com",
      "name": "mbx-npm-05-production"
    },
    {
      "email": "yannick.meeus+npm+prod+04@mapbox.com",
      "name": "mbx-npm-04-production"
    },
    {
      "email": "yannick.meeus+npm+prod+03@mapbox.com",
      "name": "mbx-npm-03-production"
    },
    {
      "email": "yannick.meeus+npm+prod+02@mapbox.com",
      "name": "mbx-npm-02-production"
    },
    {
      "email": "yannick.meeus+npm+prod+01@mapbox.com",
      "name": "mbx-npm-01-production"
    },
    {
      "email": "yannick.meeus@mapbox.com",
      "name": "mbx-npm-02-staging"
    },
    {
      "email": "accounts+npmjs-01@mapbox.com",
      "name": "mapbox-npm-01"
    },
    {
      "email": "accounts+npmjs-02@mapbox.com",
      "name": "mapbox-npm-02"
    },
    {
      "email": "accounts+npmjs-07@mapbox.com",
      "name": "mapbox-npm-07"
    },
    {
      "email": "accounts+npmjs-03@mapbox.com",
      "name": "mapbox-npm-03"
    },
    {
      "email": "accounts+npmjs-04@mapbox.com",
      "name": "mapbox-npm-04"
    },
    {
      "email": "accounts+npmjs-09@mapbox.com",
      "name": "mapbox-npm-09"
    },
    {
      "email": "accounts+npmjs-05@mapbox.com",
      "name": "mapbox-npm-05"
    },
    {
      "email": "accounts+npmjs-06@mapbox.com",
      "name": "mapbox-npm-06"
    },
    {
      "email": "accounts+npmjs-08@mapbox.com",
      "name": "mapbox-npm-08"
    },
    {
      "email": "accounts+npmjs-advanced-actions@mapbox.com",
      "name": "mapbox-npm-advanced-actions"
    },
    {
      "email": "accounts+npmjs-npm-ci@mapbox.com",
      "name": "mapbox-npm-ci"
    },
    {
      "email": "accounts+npmjs@mapbox.com",
      "name": "mapbox-npm"
    },
    {
      "email": "accounts@mapbox.com",
      "name": "mapbox-admin"
    },
    {
      "email": "accounts+npm-mapbox-machine-user@mapbox.com",
      "name": "mapbox-machine-user"
    }
  ],
  "keywords": [
    "tile",
    "cover",
    "geojson",
    "index"
  ],
  "dist-tags": {
    "latest": "3.0.2"
  },
  "author": {
    "name": "morganherlocker"
  },
  "_rev": "264-a9f39973c9f64251c1747dd6eee0dca2",
  "description": "generate the minimum number of tiles to cover a geojson geometry",
  "readme": "tile-cover\n==========\n\n[![Build Status](https://travis-ci.org/mapbox/tile-cover.svg?branch=master)](https://travis-ci.org/mapbox/tile-cover)\n\nGenerate the minimum number of tiles to cover a [GeoJSON Geometry](http://geojson.org/geojson-spec.html#geometry-objects).\n\n### Install\n\n```bash\nnpm install @mapbox/tile-cover\n```\n\n### Usage\n\n```js\nvar cover = require('@mapbox/tile-cover');\nvar poly = JSON.parse(fs.readFileSync('./poly.geojson'));\nvar limits = {\n  \tmin_zoom: 4,\n  \tmax_zoom: 9\n};\n\ncover.geojson(poly.geom, limits);\ncover.tiles(poly.geom, limits);\ncover.indexes(poly.geom, limits);\n```\n\n# API\n\n## geojson(geom, limits)\n\nGiven a [geometry](http://geojson.org/geojson-spec.html#geometry-objects), create cells and return them in a format easily readable by any software that reads GeoJSON.\n\n* `geom` (`Object`): GeoJSON geometry\n* `limits` (`Object`): an object with min_zoom and max_zoom properties specifying the minimum and maximum level to be tiled.\n\n**Returns** `Object`, FeatureCollection of cells formatted as GeoJSON Features\n## tiles(geom, limits)\n\nGiven a [geometry](http://geojson.org/geojson-spec.html#geometry-objects), create cells and return them in their raw form, as an array of cell identifiers.\n\n* `geom` (`Object`): GeoJSON geometry\n* `limits` (`Object`): an object with min_zoom and max_zoom properties specifying the minimum and maximum level to be tiled.\n\n**Returns** `Array.<Array.<number>>`, An array of tiles given as [x, y, z] arrays\n## indexes(geom, limits)\n\nGiven a [geometry](http://geojson.org/geojson-spec.html#geometry-objects), create cells and return them as quadkey indexes.\n\n* `geom` (`Object`): GeoJSON geometry\n* `limits` (`Object`): an object with min_zoom and max_zoom properties specifying the minimum and maximum level to be tiled.\n\n**Returns** `Array.<String>`, An array of tiles given as quadkeys.\n\n### Tests\n\n```bash\nnpm test\n```\n\n### Benchmarks\n\n```bash\nnode bench.js\n```\n\n### Examples\n\n##### Polygons:\n\n![img](https://dl.dropbox.com/s/48cj16fvt8nyh3o/Screenshot%202014-08-06%2013.34.12.png)\n\n##### Lines:\n\n![img](https://dl.dropbox.com/s/u32bq56adqwhpyy/Screenshot%202014-08-06%2013.30.31.png)\n\n##### Points:\n\n![img](https://dl.dropbox.com/s/7kkmmm8owg1ezb0/Screenshot%202014-08-06%2014.02.01.png)\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/mapbox/tile-cover.git"
  },
  "users": {
    "galochkinkirov": true
  },
  "bugs": {
    "url": "https://github.com/mapbox/tile-cover/issues"
  },
  "license": "MIT",
  "versions": {
    "3.0.1": {
      "name": "@mapbox/tile-cover",
      "version": "3.0.1",
      "description": "generate the minimum number of tiles to cover a geojson geometry",
      "main": "index.js",
      "directories": {
        "test": "test"
      },
      "scripts": {
        "test": "eslint index.js && tape test/*.js",
        "doc": "dox < index.js | doxme"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/mapbox/tile-cover.git"
      },
      "keywords": [
        "tile",
        "cover",
        "geojson",
        "index"
      ],
      "author": {
        "name": "morganherlocker"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/mapbox/tile-cover/issues"
      },
      "homepage": "https://github.com/mapbox/tile-cover",
      "devDependencies": {
        "benchmark": "^1.0.0",
        "dox": "^0.8.0",
        "doxme": "^1.8.2",
        "eslint": "^1.3.1",
        "tape": "^4.2.0",
        "turf-area": "^1.1.1",
        "turf-erase": "^1.3.2",
        "turf-intersect": "1.4.2",
        "turf-merge": "1.0.2"
      },
      "dependencies": {
        "tilebelt": "^1.0.1"
      },
      "gitHead": "42dc57ceac08c3eb8d7f4d6b0dd249de66d05335",
      "_id": "@mapbox/tile-cover@3.0.1",
      "_shasum": "ad0dbe69d02e4e9ff74bf228b3ee8fa533034210",
      "_from": ".",
      "_npmVersion": "2.15.8",
      "_nodeVersion": "4.4.7",
      "_npmUser": {
        "name": "aaronlidman",
        "email": "aaronlidman@gmail.com"
      },
      "dist": {
        "shasum": "ad0dbe69d02e4e9ff74bf228b3ee8fa533034210",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@mapbox/tile-cover/-/tile-cover-3.0.1.tgz",
        "integrity": "sha512-R8aoFY/87HWBOL9E2eBqzOY2lpfWYXCcTNgBpIxAv67rqQeD4IfnHD0iPXg/Z1cqXrklegEYZCp/7ZR/RsWqBQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQC2ALs7dY6dpeFbDxw/J1iDB1fHc1ux0qkgQHmCasPLUgIgLaBQIKS5tpw7GUBLRGBMs/ylcpmwaedPELqNs4lCXUA="
          }
        ]
      },
      "maintainers": [
        {
          "name": "aaronlidman",
          "email": "aaronlidman@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-18-east.internal.npmjs.com",
        "tmp": "tmp/tile-cover-3.0.1.tgz_1486435558475_0.1992731005884707"
      }
    },
    "3.0.2": {
      "name": "@mapbox/tile-cover",
      "version": "3.0.2",
      "description": "generate the minimum number of tiles to cover a geojson geometry",
      "main": "index.js",
      "directories": {
        "test": "test"
      },
      "scripts": {
        "lint": "eslint *.js test/*.js --fix",
        "test": "npm run lint && tape test/*.js",
        "doc": "dox < index.js | doxme"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/mapbox/tile-cover.git"
      },
      "keywords": [
        "tile",
        "cover",
        "geojson",
        "index"
      ],
      "author": {
        "name": "morganherlocker"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/mapbox/tile-cover/issues"
      },
      "homepage": "https://github.com/mapbox/tile-cover",
      "devDependencies": {
        "@turf/area": "^4.0.1",
        "@turf/difference": "^4.0.1",
        "@turf/intersect": "^3.0.14",
        "@turf/union": "^3.0.14",
        "benchmark": "^2.1.4",
        "dox": "^0.9.0",
        "doxme": "^1.8.2",
        "eslint": "^3.19.0",
        "eslint-config-mourner": "^2.0.1",
        "tape": "^4.6.3"
      },
      "dependencies": {
        "@mapbox/tilebelt": "^1.0.1"
      },
      "eslintConfig": {
        "extends": "mourner",
        "rules": {
          "camelcase": 0
        }
      },
      "gitHead": "0d3f34cb639e6135b7db4fc652f52fe839523e51",
      "_id": "@mapbox/tile-cover@3.0.2",
      "_shasum": "e10b1bbfe65ee28a7f1a0127deb699635d0f8d7a",
      "_from": ".",
      "_npmVersion": "4.2.0",
      "_nodeVersion": "4.8.1",
      "_npmUser": {
        "name": "mourner",
        "email": "agafonkin@gmail.com"
      },
      "dist": {
        "shasum": "e10b1bbfe65ee28a7f1a0127deb699635d0f8d7a",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@mapbox/tile-cover/-/tile-cover-3.0.2.tgz",
        "integrity": "sha512-A6qvtttsYI66BYi8JMD0v7BzxeuXJf6qSzufmdvvYxDJyXqATZ7ig6OKHFCW7/OsUjpfFu3rB54JM/yHUOVB9g==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDNXt87hgJO+ayLqcpCjWXRXb0vlPBlvQP7FpvCzFhieQIgGhEdxtO0R381SluoyZZh45wIbcer0poqAQ3Wv2k0blQ="
          }
        ]
      },
      "maintainers": [
        {
          "name": "aaronlidman",
          "email": "aaronlidman@gmail.com"
        },
        {
          "name": "aarthykc",
          "email": "aarthy@mapbox.com"
        },
        {
          "name": "ajithranka",
          "email": "ajith@mapbox.com"
        },
        {
          "name": "aliceykuo",
          "email": "alice@mapbox.com"
        },
        {
          "name": "alinapaz",
          "email": "alinapaz@gmail.com"
        },
        {
          "name": "allierowan",
          "email": "aileen.s.rowan@gmail.com"
        },
        {
          "name": "alulsh",
          "email": "ulsh@mapbox.com"
        },
        {
          "name": "amishas157",
          "email": "amisha@mapbox.com"
        },
        {
          "name": "amyleew",
          "email": "amyleewalton@gmail.com"
        },
        {
          "name": "anandthakker",
          "email": "vestibule@anandthakker.net"
        },
        {
          "name": "ansis",
          "email": "ansis.brammanis@gmail.com"
        },
        {
          "name": "aparlato",
          "email": "alex.parlato@mapbox.com"
        },
        {
          "name": "apendleton",
          "email": "andrew@mapbox.com"
        },
        {
          "name": "arunasank",
          "email": "aruna@mapbox.com"
        },
        {
          "name": "batpad",
          "email": "sanjay@mapbox.com"
        },
        {
          "name": "benjamintd",
          "email": "benjamin@mapbox.com"
        },
        {
          "name": "bhousel",
          "email": "bryan@mapbox.com"
        },
        {
          "name": "bkowshik",
          "email": "bhargav.kowshik@gmail.com"
        },
        {
          "name": "boblannon",
          "email": "blannon@gmail.com"
        },
        {
          "name": "brendanmcfarland",
          "email": "brendan@mapbox.com"
        },
        {
          "name": "bsrinivasa",
          "email": "bharata+npm@mapbox.com"
        },
        {
          "name": "bsudekum",
          "email": "bobby@mapbox.com"
        },
        {
          "name": "calfarome",
          "email": "cesar@mapbox.com"
        },
        {
          "name": "camillacaros",
          "email": "camilla@mapbox.com"
        },
        {
          "name": "captainbarbosa",
          "email": "nadia.barbosa@mapbox.com"
        },
        {
          "name": "chaupow",
          "email": "hello@chau-nguyen.de"
        },
        {
          "name": "chetangowda",
          "email": "chethan@mapbox.com"
        },
        {
          "name": "chrisloer",
          "email": "chris.loer@mapbox.com"
        },
        {
          "name": "colleenmcginnis",
          "email": "colleen.mcginnis@mapbox.com"
        },
        {
          "name": "danieljh",
          "email": "daniel+npm@trvx.org"
        },
        {
          "name": "dannykath",
          "email": "danny@mapbox.com"
        },
        {
          "name": "danpat",
          "email": "danpat@danpat.net"
        },
        {
          "name": "danswick",
          "email": "dan@mapbox.com"
        },
        {
          "name": "dasulit",
          "email": "dana.sulit@mapbox.com"
        },
        {
          "name": "davidtheclark",
          "email": "david.dave.clark@gmail.com"
        },
        {
          "name": "deniskoronchik",
          "email": "denis.koronchik@gmail.com"
        },
        {
          "name": "dnomadb",
          "email": "damon@mapbox.com"
        },
        {
          "name": "dthompson",
          "email": "dthompson@gmail.com"
        },
        {
          "name": "emilymcafee",
          "email": "emily@mapbox.com"
        },
        {
          "name": "emilymdubois",
          "email": "dubois@mapbox.com"
        },
        {
          "name": "enf",
          "email": "fischer@mapbox.com"
        },
        {
          "name": "fa7c0n",
          "email": "gokul.ganesan@mapbox.com"
        },
        {
          "name": "freenerd",
          "email": "spam@freenerd.de"
        },
        {
          "name": "geohacker",
          "email": "sajjadkm@gmail.com"
        },
        {
          "name": "ghoshkaj",
          "email": "ghoshkaj@gmail.com"
        },
        {
          "name": "gretacb",
          "email": "carol@mapbox.com"
        },
        {
          "name": "ian29",
          "email": "ian.villeda@gmail.com"
        },
        {
          "name": "ianshward",
          "email": "ian@mapbox.com"
        },
        {
          "name": "ilyasaf",
          "email": "safonov.ilya@gmail.com"
        },
        {
          "name": "ingalls",
          "email": "nicholas.ingalls@gmail.com"
        },
        {
          "name": "isiyu",
          "email": "siyu.song@gmail.com"
        },
        {
          "name": "jacquestardie",
          "email": "hi@jacquestardie.org"
        },
        {
          "name": "jfirebaugh",
          "email": "john.firebaugh@gmail.com"
        },
        {
          "name": "jothirnadh",
          "email": "jothirnadh@mapbox.com"
        },
        {
          "name": "jrpruit1",
          "email": "jake@jakepruitt.com"
        },
        {
          "name": "k-mahoney",
          "email": "kara.e.mahoney@gmail.com"
        },
        {
          "name": "kaibot3000",
          "email": "kai@mapbox.com"
        },
        {
          "name": "kaidalgleish",
          "email": "kai@mapbox.com"
        },
        {
          "name": "karenzshea",
          "email": "karen@mapbox.com"
        },
        {
          "name": "karitotp",
          "email": "karito@mapbox.com"
        },
        {
          "name": "katydecorah",
          "email": "decorah@mapbox.com"
        },
        {
          "name": "kepta",
          "email": "0o3ko0@gmail.com"
        },
        {
          "name": "kkaefer",
          "email": "mail@kkaefer.com"
        },
        {
          "name": "kronick",
          "email": "sam.kronick@mapbox.com"
        },
        {
          "name": "l-r",
          "email": "laurier@mapbox.com"
        },
        {
          "name": "laurier",
          "email": "l@pwd.io"
        },
        {
          "name": "lbud",
          "email": "lauren@mapbox.com"
        },
        {
          "name": "lily-chai",
          "email": "lily@mapbox.com"
        },
        {
          "name": "lndsay",
          "email": "lindsay@mapbox.com"
        },
        {
          "name": "lucaswoj",
          "email": "lucas@lucaswoj.com"
        },
        {
          "name": "lukasmartinelli",
          "email": "me@lukasmartinelli.ch"
        },
        {
          "name": "lxbarth",
          "email": "alex@mapbox.com"
        },
        {
          "name": "lyzidiamond",
          "email": "lyzi@mapbox.com"
        },
        {
          "name": "maning",
          "email": "emmanuel.sambale@gmail.com"
        },
        {
          "name": "manoharuss",
          "email": "manohar@mapbox.com"
        },
        {
          "name": "mapbox-admin",
          "email": "accounts@mapbox.com"
        },
        {
          "name": "mapbox-machine-user",
          "email": "accounts+npm-mapbox-machine-user@mapbox.com"
        },
        {
          "name": "mapsam",
          "email": "sam@mapbox.com"
        },
        {
          "name": "mateov",
          "email": "matt@mapbox.com"
        },
        {
          "name": "mattficke",
          "email": "matt@mattficke.com"
        },
        {
          "name": "mayaqgao",
          "email": "mayaqgao@gmail.com"
        },
        {
          "name": "mcwhittemore",
          "email": "mcwhittemore@gmail.com"
        },
        {
          "name": "miccolis",
          "email": "jeff@miccolis.net"
        },
        {
          "name": "miles-dev",
          "email": "miles.sackler@mapbox.com"
        },
        {
          "name": "mokob",
          "email": "moritz@mapbox.com"
        },
        {
          "name": "mollymerp",
          "email": "mollylloyd@gmail.com"
        },
        {
          "name": "morganherlocker",
          "email": "morgan.herlocker@gmail.com"
        },
        {
          "name": "mourner",
          "email": "agafonkin@gmail.com"
        },
        {
          "name": "msirenko",
          "email": "max@mapbox.com"
        },
        {
          "name": "nammala",
          "email": "krishna@mapbox.com"
        },
        {
          "name": "natslaughter",
          "email": "nat@mapbox.com"
        },
        {
          "name": "nickcordella",
          "email": "nick.cordella@mapbox.com"
        },
        {
          "name": "nickidlugash",
          "email": "nicki@mapbox.com"
        },
        {
          "name": "nikhilprabhakar",
          "email": "nikinfour@gmail.com"
        },
        {
          "name": "oini",
          "email": "oindrila.gupta92@gmail.com"
        },
        {
          "name": "oliikit",
          "email": "olivia.brundage@mapbox.com"
        },
        {
          "name": "oxidase",
          "email": "michael.krasnyk@gmail.com"
        },
        {
          "name": "pdgoodman",
          "email": "paul@mapbox.com"
        },
        {
          "name": "perrygeo",
          "email": "perrygeo@gmail.colm"
        },
        {
          "name": "peterqliu",
          "email": "peterqliu@gmail.com"
        },
        {
          "name": "planemad",
          "email": "arun.planemad@gmail.com"
        },
        {
          "name": "pratikyadav",
          "email": "pratik@mapbox.com"
        },
        {
          "name": "rasagy",
          "email": "rasagy@mapbox.com"
        },
        {
          "name": "rclark",
          "email": "ryan.clark.j@gmail.com"
        },
        {
          "name": "richrico",
          "email": "richman@mapbox.com"
        },
        {
          "name": "ridixcr",
          "email": "pavel@mapbox.com"
        },
        {
          "name": "rub21",
          "email": "ruben@mapbox.com"
        },
        {
          "name": "rumc",
          "email": "r.ragupathy85@gmail.com"
        },
        {
          "name": "ryan-baumann",
          "email": "rsbaumann@gmail.com"
        },
        {
          "name": "saikia.abhishek",
          "email": "abhishek@mapbox.com"
        },
        {
          "name": "samanbb",
          "email": "saman@mapbox.com"
        },
        {
          "name": "samely",
          "email": "eliane@mapbox.com"
        },
        {
          "name": "sarahkleins",
          "email": "sarah.kleinman@mapbox.com"
        },
        {
          "name": "sbma44",
          "email": "tlee@mapbox.com"
        },
        {
          "name": "scothis",
          "email": "scothis@gmail.com"
        },
        {
          "name": "sgillies",
          "email": "sean@mapbox.com"
        },
        {
          "name": "springmeyer",
          "email": "dane@mapbox.com"
        },
        {
          "name": "srividyacb",
          "email": "srividyabharadwaj26@gmail.com"
        },
        {
          "name": "tcql",
          "email": "tim.channell@gmail.com"
        },
        {
          "name": "themarex",
          "email": "patrick@mapbox.com"
        },
        {
          "name": "tony-cj",
          "email": "tony.chen@mapbox.com"
        },
        {
          "name": "tristen",
          "email": "tristen.brown@gmail.com"
        },
        {
          "name": "upendrayadav",
          "email": "upendra@mapbox.com"
        },
        {
          "name": "uvollmer",
          "email": "ugo.vollmer@mapbox.com"
        },
        {
          "name": "vincents",
          "email": "vincent.sarago@mapbox.com"
        },
        {
          "name": "virginiayung",
          "email": "virginia@mapbox.com"
        },
        {
          "name": "willwhite",
          "email": "will@mapbox.com"
        },
        {
          "name": "xrwang",
          "email": "xiaowei@mapbox.com"
        },
        {
          "name": "yhahn",
          "email": "young@mapbox.com"
        },
        {
          "name": "yunjieli",
          "email": "yunjie.li@mapbox.com"
        },
        {
          "name": "zmully",
          "email": "mully@mapbox.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-12-west.internal.npmjs.com",
        "tmp": "tmp/tile-cover-3.0.2.tgz_1491561953695_0.7600050754845142"
      }
    }
  },
  "name": "@mapbox/tile-cover",
  "time": {
    "modified": "2026-07-13T08:14:57.818Z",
    "created": "2017-02-07T02:46:00.394Z",
    "3.0.1": "2017-02-07T02:46:00.394Z",
    "3.0.2": "2017-04-07T10:45:55.873Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/mapbox/tile-cover"
}