geo

package
v0.0.0-...-3b51fbf Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pos

type Pos struct {
	Lat, Lon float64
}

func (*Pos) GeohackURL

func (p *Pos) GeohackURL() string

func (*Pos) GoogmapsURL

func (p *Pos) GoogmapsURL() string

func (*Pos) OSMURL

func (p *Pos) OSMURL() string

type ReverseCache

type ReverseCache struct {
	Table table
	// contains filtered or unexported fields
}

func NewReverseCache

func NewReverseCache() *ReverseCache

func (*ReverseCache) Add

func (r *ReverseCache) Add(p Pos)

func (*ReverseCache) FormatAddress

func (r *ReverseCache) FormatAddress(p Pos) string

func (*ReverseCache) Has

func (r *ReverseCache) Has(p Pos) bool

func (*ReverseCache) Load

func (r *ReverseCache) Load(cachefile string) error

func (*ReverseCache) Save

func (r *ReverseCache) Save(cachefile string) error

Jump to

Keyboard shortcuts

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