---
id: "quadkey"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["geo"]
langs: ["common"]
quality: 75
url: "http://registry.apicrafter.io/datatype/quadkey"
---

# Bing Maps tile quadkey (`quadkey`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Quadtree key of a map tile in the Bing Maps Tile System of Microsoft. The bits of the tile Y and X coordinates are interleaved and written as base-4 digits 0 to 3, with leading zeros kept. The number of digits equals the level of detail, from 1 to 23, and a tile's key begins with the key of its parent tile. The regexp only checks this shape, so it also matches other numbers made of the digits 0 to 3.

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[0-3]{1,23}$
```

## Examples

- `213` — Tile X 3, Y 5 at level 3 (example in the Microsoft documentation)
- `130` — Child of tile 13 at level 3
- `2` — Level 1 tile, parent of tiles 20 to 23
- `2134` (invalid example) — The digit 4 is not used

## Sources

- doc: <https://learn.microsoft.com/en-us/bingmaps/articles/bing-maps-tile-system>

## Quality

Score 75/100. Missing: mapping (Wikidata, Schema.org, ...), translation, detector coverage.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/quadkey.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/geo/quadkey.yaml>
