geoprimsField-grade geospatial math

Map tiles covering a box

Every z/x/y tile at a zoom that touches a latitude and longitude box, across the antimeridian when west is greater than east, for pre-caching or download planning.

9

9 tiles cover the box at this zoom.

Tiles
TileQuadkey
14/4550/617503200111022332
14/4551/617503200111022333
14/4552/617503200111023222
14/4550/617603200111200110
14/4551/617603200111200111
14/4552/617603200111201000
14/4550/617703200111200112
14/4551/617703200111200113
14/4552/617703200111201002
Columns
Rows
Provenance
Computed by
indexing.tile.cover 1.0.0, core 0.1.0
Model
The tiles from the one holding the northwest corner to the one holding the southeast corner, on the spherical Web Mercator grid; a box edge on a tile edge does not take the next tile
Accuracy
Exact; latitudes beyond ±85.0511° are clamped to the Web Mercator limit
Notes
None
Cites
OpenStreetMap Wiki, Slippy map tilenames; Microsoft, Bing Maps Tile System

Something look off?

Your values

Showing an example. Change anything.
Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: The tiles from the one holding the northwest corner to the one holding the southeast corner, on the spherical Web Mercator grid; a box edge on a tile edge does not take the next tile

Show your work

  1. Columns and rows

    the tiles holding the northwest and southeast corners

    x 4550 to 4552, y 6175 to 6177 = 3 × 3

  2. Tiles

    columns×rows

    3 × 3 = 9

The same steps an agent gets from the MCP server with explain: true.

Accuracy: Exact; latitudes beyond ±85.0511° are clamped to the Web Mercator limit

When to use this: Use this to list the tiles an area needs: pre-caching a region for offline use, planning a download, working out how much a basemap job will cost, or invalidating everything that covers a changed area. Give the box and the zoom and it returns every tile that touches it.

Limitations: The grid ends at plus or minus 85.0511 degrees, where the Web Mercator square runs out; a box beyond that is clamped, with a warning, because there are no tiles there. A box edge lying exactly on a tile edge does not take the next tile, so a one-tile box returns one tile. West greater than east means the box crosses the antimeridian and the columns wrap. The count grows fourfold per zoom, so a wide box at a deep zoom is refused rather than answered with a list nobody wanted.

Worked example: Downtown Pittsburgh at zoom 14. Source: Slippy map tile arithmetic. It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.

You enter

East
-79.98 deg
North
40.45 deg
South
40.43 deg
West
-80.02 deg
Zoom
14

You get

Tiles
9
Columns
4550 to 4552
Rows
6175 to 6177

Review: Not yet independently reviewed by a GIS professional.

Last verified: 2026-09-18, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.0.0, core 0.1.0. See this tool in the verification report.

Checked against: 21 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources