My App
Api

Tiles

Implemented TileJSON and vector tile routes.

Tiles API

Tiles are served from published uploaded PMTiles artifacts or proxied Martin sources.

Routes

GET /tiles/v1/{owner}/{handle}.json
GET /tiles/v1/{owner}/{handle}/{z}/{x}/{y}
GET /tiles/v1/{owner}/{handle}/versions/{version}.json
GET /tiles/v1/{owner}/{handle}/versions/{version}/{z}/{x}/{y}
GET /tiles/v1/{owner}.{handle}.json
GET /tiles/v1/{owner}.{handle}@{version}.json
GET /tiles/v1/{owner}.{handle}/{z}/{x}/{y}
GET /tiles/v1/{source}.json
GET /tiles/v1/{source}/{z}/{x}/{y}
GET /v4/{owner}.{handle}/tilequery/{lon},{lat}.json

Stable URLs resolve to the promoted current version. Version URLs are immutable and receive long cache headers.

Auth

Published public tiles can be read anonymously. Valid API keys or sessions may attach identity for private-owner reads and metering.

Errors

Common responses include 404 NOT_FOUND for missing tilesets or versions, 400 VALIDATION_ERROR for invalid versions, and 503 ARTIFACT_MISSING when the database points at a missing published artifact.

Tilequery

Tilequery is available for PMTiles-backed vector tilesets. Supported query parameters are z, radius, limit, layers, and geometry=point|full. Raster tilequery is not supported.

On this page