Skip to content
GuidesPlaygroundDashboard

Get a Mapbox Vector Tile

client.Tiles.Get(ctx, z, x, y) (*Response, error)
GET/api/v1/tiles/{z}/{x}/{y}

Get a Mapbox Vector Tile

ParametersExpand Collapse
z int64
x int64
y int64
ReturnsExpand Collapse
type TileGetResponse interface{…}

Get a Mapbox Vector Tile

package main

import (
  "context"
  "fmt"

  "github.com/plazafyi/plaza-go"
  "github.com/plazafyi/plaza-go/option"
)

func main() {
  client := githubcomplazafyiplazago.NewClient(
    option.WithAPIKey("My API Key"),
  )
  tile, err := client.Tiles.Get(
    context.TODO(),
    int64(0),
    int64(0),
    int64(0),
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", tile)
}
Returns Examples