finder

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(
	NewFinder,
	wire.Bind(new(tzf.F), new(*TZfinder)),
)

Functions

This section is empty.

Types

type F

type F interface {
	tzf.F
}

type FinderType

type FinderType int
const (
	PolygonFinder FinderType = iota
	FuzzyFinder
)

type SetupFinderOptions

type SetupFinderOptions struct {
	FinderType     FinderType
	CustomDataPath string
}

type TZfinder

type TZfinder struct {
	Finder              tzf.F
	TZData              VisualizableTimezoneData
	TZName2Abbreviation map[string]string
	TZName2Offset       map[string]*durationpb.Duration
}

func NewFinder

func NewFinder(cfg *config.Config) (*TZfinder, error)

func (*TZfinder) DataVersion

func (f *TZfinder) DataVersion() string

func (*TZfinder) GetTimezoneName

func (f *TZfinder) GetTimezoneName(lng, lat float64) string

func (*TZfinder) GetTimezoneNames

func (f *TZfinder) GetTimezoneNames(lng, lat float64) ([]string, error)

func (*TZfinder) TimezoneNames

func (f *TZfinder) TimezoneNames() []string

type VisualizableTimezoneData

type VisualizableTimezoneData interface {
	GetShape(name string) (interface{}, error)
}

Jump to

Keyboard shortcuts

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