Skip to content
GuidesPlaygroundDashboard

Get a Mapbox Vector Tile

client.tiles.get(numbery, TileGetParams { z, x } params, RequestOptionsoptions?): Response
GET/api/v1/tiles/{z}/{x}/{y}

Get a Mapbox Vector Tile

ParametersExpand Collapse
y: number
params: TileGetParams { z, x }
z: number

Zoom level (0-22)

x: number

Tile X coordinate

ReturnsExpand Collapse
unnamed_schema_1 = Response

Get a Mapbox Vector Tile

import Plaza from '@plazafyi/sdk';

const client = new Plaza({
  apiKey: process.env['PLAZA_API_KEY'], // This is the default and can be omitted
});

const tile = await client.tiles.get(0, { z: 0, x: 0 });

console.log(tile);

const content = await tile.blob();
console.log(content);
Returns Examples