Skip to main content

API overview

This section defines the common operations that language bindings should expose.

Canonical operations

  • latLngToTileId(latDeg, lonDeg, level) -> tileId
  • tileIdToBounds(tileId) -> (westDeg, southDeg, eastDeg, northDeg)
  • tileIdToCenter(tileId) -> (latDeg, lonDeg)
  • tileIdToVertices(tileId) -> [(latDeg, lonDeg), ...]

Canonical string form

All bindings should accept and emit the canonical textual identifier:

lt:<level>:<ix>:<iy>