Help us shape the future of Go! Take the 2026 Go Developer Survey

mercantile

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 1 Imported by: 0

README

go-mercantile

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bbox

type Bbox struct {
	Left   float64
	Bottom float64
	Right  float64
	Top    float64
}

type LngLat

type LngLat struct {
	Lng float64
	Lat float64
}

func (*LngLat) Truncate

func (lngLat *LngLat) Truncate()

func (*LngLat) XY

func (lngLat *LngLat) XY(truncate bool) *XY

type LngLatBbox

type LngLatBbox struct {
	West  float64
	South float64
	East  float64
	North float64
}

type Tile

type Tile struct {
	X int
	Y int
	Z int
}

func (*Tile) Bounds

func (t *Tile) Bounds() *LngLatBbox

func (*Tile) UpperLeft

func (t *Tile) UpperLeft() *LngLat

func (*Tile) XYBounds

func (t *Tile) XYBounds() *Bbox

type XY

type XY struct {
	X float64
	Y float64
}

func (*XY) LngLat

func (xy *XY) LngLat(truncate bool) *LngLat

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL