Search documentation
karat

+

K

User Documentation ↗

Load Tile

GET/api/gotham/v1/maprendering/resources/tiles/{tileset}/{zoom}/{xCoordinate}/{yCoordinate}
Warning

This endpoint is in preview and may be modified or removed at any time. To use this endpoint, add preview=true to the request query parameters.

Loads a tile from the provided tileset at the provided coordinates. This endpoint has the following features that make it more easily usable from browsers:

  • Respects the If-None-Match etag header, returning 304 if the tile is unchanged.
  • Will use a PALANTIR_TOKEN cookie if no authorization header was provided.
  • Returns Cache-Control and Content-Type headers.

Path parameters

tileset
string

Unique identifier for a tileset that can be used to fetch slippy tiles. The ID is opaque and not meant to be parsed in any way.

zoom
integer
xCoordinate
integer
yCoordinate
integer

Query parameters

preview
boolean
optional

Represents a boolean value that restricts an endpoint to preview mode when set to true.

Response body

body
string

A successful render response.

Examples

Request

Copied!
1 2 3 curl \ -H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/gotham/v1/maprendering/resources/tiles/ePkllYLiQ1gYmJuZY2RqZOpbmlOSGQBa6OM8EVPoV3diXjKw8wHmFf_4ocnooKkmyV9fX--myeCgJKbAKKIUzfYTLK4s5Q8UtwaJiwdzyooaeEDElUz1YeLCwjzMkvHKEHE5GXGYOaK1hTGx9lBxeX57mHrJ9GpuRX4uiLgsO8jeQJC4NKNEiaic-8-f7YlVmbmlJRnFP352gJaJAV2bCmR3AtsaZZB2LVAiNz8F2M5NLSr-9bu9uDI3KT_HM8XP3cNd193HTRcCIn7_BgA0xGLI/{zoom}/{xCoordinate}/{yCoordinate}?preview=true"