<commit_before>tile-cover
==========

generate the minimum number of tiles to cover a geojson geometry


```js
var poly = JSON.parse(fs.readFileSync('./poly.geojson'));
cover.geojson(poly.geometry);
cover.geojson(poly.tiles);
```

Input:

![img](https://dl.dropbox.com/s/xf3ifvut64ay6jf/Screenshot%202014-08-05%2016.21.03.png)

Output:

![img](https://dl.dropbox.com/s/8fjof4uep86hwlc/Screenshot%202014-08-05%2016.21.24.png)

Input/Output:

![img](https://dl.dropbox.com/s/py6yywfxnenx4ks/Screenshot%202014-08-05%2016.29.17.png)<commit_msg>install instructions<commit_after>tile-cover
==========

generate the minimum number of tiles to cover a geojson geometry

###install

```bash
npm install tile-cover
```

###usage

```js
var poly = JSON.parse(fs.readFileSync('./poly.geojson'));
cover.geojson(poly.geometry);
cover.geojson(poly.tiles);
```

Input:

![img](https://dl.dropbox.com/s/xf3ifvut64ay6jf/Screenshot%202014-08-05%2016.21.03.png)

Output:

![img](https://dl.dropbox.com/s/8fjof4uep86hwlc/Screenshot%202014-08-05%2016.21.24.png)

Input/Output:

![img](https://dl.dropbox.com/s/py6yywfxnenx4ks/Screenshot%202014-08-05%2016.29.17.png)
{'fraction_non_alphanumeric': 0.19842657342657344, 'fraction_numerical': 0.11188811188811189, 'mean_word_length': 5.505681818181818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3030978', 'n_tokens_mistral': 559, 'n_tokens_neox': 468, 'n_words': 54}