# Quick start¶

In the XYZ tiling system, the region of the world from 85.0511 (more precisely: `arctan(sinh(π))`) degrees south of the Equator to 85.0511 degrees north is covered at zoom level 0 by a single tile. The number of tiles at each zoom level is `4 ** Z`. At zoom level 1, we have 4 tiles.

```    +-------------+-------------+  85.0511 deg N
|             |             |
|    x: 0     |    x: 1     |
|    y: 0     |    y: 0     |
|    z: 1     |    z: 1     |
|             |             |
+-------------+-------------+   0.0 deg N
|             |             |
|    x: 0     |    x: 1     |
|    y: 1     |    y: 1     |
|    z: 1     |    z: 1     |
|             |             |
+-------------+-------------+  85.0511 deg S

180.0 deg W               180.0 deg E
```

You can get the tile containing a longitude and latitude pair from the `mercantile.tile` function.

```>>> import mercantile
>>> mercantile.tile(-105.0, 40.0, 1)
Tile(x=0, y=0, z=1)
```

You can get the geographic (longitude and latitude) bounds of a tile from the `mercantile.bounds` function.

```>>> mercantile.bounds(mercantile.Tile(x=0, y=0, z=1))
LngLatBbox(west=-180.0, south=0.0, east=0.0, north=85.0511287798066)
```
{"ft_lang_label":"__label__en","ft_lang_prob":0.54120886,"math_prob":0.92694145,"size":969,"snap":"2022-40-2023-06","text_gpt3_token_len":351,"char_repetition_ratio":0.18756476,"word_repetition_ratio":0.20809248,"special_character_ratio":0.48400414,"punctuation_ratio":0.2117117,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9765252,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-01-28T07:13:09Z\",\"WARC-Record-ID\":\"<urn:uuid:0ffde24b-51cb-4508-be9a-2052282c0e51>\",\"Content-Length\":\"9236\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bb15fdd2-4781-4faa-9757-ef84bf5b5f0a>\",\"WARC-Concurrent-To\":\"<urn:uuid:e5ace788-327d-4c88-ad47-62e5f770fa3a>\",\"WARC-IP-Address\":\"104.17.33.82\",\"WARC-Target-URI\":\"https://mercantile.readthedocs.io/en/stable/quickstart.html\",\"WARC-Payload-Digest\":\"sha1:LO7ME66C5QQJTKDJ3IXWWWK6UT2JESBX\",\"WARC-Block-Digest\":\"sha1:44EKEXKDKWSCHSNHJ7DAUAJJYO5ISVFX\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764499524.28_warc_CC-MAIN-20230128054815-20230128084815-00719.warc.gz\"}"}