Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

strava/go.vector_tile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go.vector_tile

Package vector_tile provides the Go (Golang) code needed to read and write Mapbox vector tiles. Most of the code is the auto generated protobuf language bindings, but there are a few helpers to make encoding and decoding the tiles a little easier.

Godoc Reference

Helper Functions

// Encode protobuf encodes the tile into a byte buffer.
func Encode(tile *Tile) ([]byte, error)

// EncodeGzipped gzips the data after encoding the tile via protocol buffers.
func EncodeGzipped(tile *Tile) ([]byte, error)

// Decode has the protobuf library decode the data into a tile.
func Decode(data []byte) (*Tile, error)

// DecodeGzipped first ungzips the data before having the
// protobuf library decode the data into a tile.
func DecodeGzipped(data []byte) (*Tile, error)

About

Golang Language binding for Mapbox vector tiles

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Protocol Buffer 66.4%
  • Go 33.6%