Catalog/maps-quadkey

Maps

Slippy-map tile / Bing quadkey converter API

Convert lat/lon + zoom to XYZ web-mercator tile coordinates and a Bing Maps quadkey with the tile's geographic bounding box, or decode a quadkey back to tile/zoom + bbox — the slippy-map tiling math an LLM cannot compute reliably. Answers 'what tile contains this lat/lon at zoom 12', 'quadkey for these coordinates', 'decode this quadkey to a tile', 'bounding box of XYZ tile'.

Price$0.01per request
MethodPOST
Route/v1/maps/quadkey
StatusLive
MIME typeapplication/json
Rate limit60/minute
CacheNo cache
mapsquadkeytileslippy-mapxyzweb-mercatorbinggeospatial
API URLhttps://x402.hexl.dev/v1/maps/quadkey
Integration docs
Example request
{
  "op": "encode",
  "latitude": 47.6062,
  "longitude": -122.3321,
  "zoom": 12
}
Example response
{
  "op": "encode",
  "latitude": 47.6062,
  "longitude": -122.3321,
  "zoom": 12,
  "tile": {
    "x": 656,
    "y": 1430,
    "z": 12
  },
  "quadkey": "021230030220",
  "bbox": {
    "minLat": 47.576525713746214,
    "maxLat": 47.63578359086484,
    "minLon": -122.34375,
    "maxLon": -122.255859375
  }
}
Input schema
{
  "type": "object",
  "required": [],
  "properties": {
    "op": {
      "type": "string",
      "enum": [
        "encode",
        "decode"
      ],
      "examples": [
        "encode"
      ]
    },
    "latitude": {
      "type": "number",
      "examples": [
        47.6062
      ]
    },
    "longitude": {
      "type": "number",
      "examples": [
        -122.3321
      ]
    },
    "zoom": {
      "type": "integer",
      "examples": [
        12
      ]
    },
    "quadkey": {
      "type": "string",
      "examples": [
        "021230030220"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}