Skip to content
GuidesPlaygroundDashboard

Get a Mapbox Vector Tile

tiles.get(inty, TileGetParams**kwargs) -> BinaryResponseContent
GET/api/v1/tiles/{z}/{x}/{y}

Get a Mapbox Vector Tile

ParametersExpand Collapse
z: int
x: int
y: int
ReturnsExpand Collapse
BinaryResponseContent

Get a Mapbox Vector Tile

import os
from plaza import Plaza

client = Plaza(
    api_key=os.environ.get("PLAZA_API_KEY"),  # This is the default and can be omitted
)
tile = client.tiles.get(
    y=0,
    z=0,
    x=0,
)
print(tile)
content = tile.read()
print(content)
Returns Examples