Skip to content
GuidesPlaygroundDashboard

Get a Mapbox Vector Tile

tiles.get(y_, **kwargs) -> StringIO
GET/api/v1/tiles/{z}/{x}/{y}

Get a Mapbox Vector Tile

ParametersExpand Collapse
z: Integer
x: Integer
y_: Integer
ReturnsExpand Collapse
StringIO

Get a Mapbox Vector Tile

require "plaza"

plaza = Plaza::Client.new(
  api_key: "My API Key",
  environment: "local" # defaults to "production"
)

tile = plaza.tiles.get(0, z: 0, x: 0)

puts(tile)
Returns Examples