Versions in this module Expand all Collapse all v1 v1.2.0 Oct 25, 2026 Changes in this version + var ErrNoTimezoneFound = errors.New("tzf: no timezone found") + func SetDropPBTZ(opt *Option) + type DefaultFinder struct + func (f *DefaultFinder) DataVersion() string + func (f *DefaultFinder) GetTimezoneName(lng float64, lat float64) string + func (f *DefaultFinder) GetTimezoneNames(lng float64, lat float64) ([]string, error) + func (f *DefaultFinder) TimezoneNames() []string + type F interface + DataVersion func() string + GetTimezoneName func(lng float64, lat float64) string + GetTimezoneNames func(lng float64, lat float64) ([]string, error) + TimezoneNames func() []string + func NewDefaultFinder() (F, error) + func NewFinderFromCompressed(input *pb.CompressedTimezones, opts ...OptionFunc) (F, error) + func NewFinderFromPB(input *pb.Timezones, opts ...OptionFunc) (F, error) + func NewFinderFromRawJSON(input *convert.BoundaryFile, opts ...OptionFunc) (F, error) + func NewFuzzyFinderFromPB(input *pb.PreindexTimezones) (F, error) + type Finder struct + func (f *Finder) DataVersion() string + func (f *Finder) GetTimezoneName(lng float64, lat float64) string + func (f *Finder) GetTimezoneName2(lng, lat float64) string + func (f *Finder) GetTimezoneNames(lng float64, lat float64) ([]string, error) + func (f *Finder) IsKoreaTimezone(lng float64, lat float64) bool + func (f *Finder) TimezoneNames() []string + type FuzzyFinder struct + func (f *FuzzyFinder) DataVersion() string + func (f *FuzzyFinder) GetTimezoneName(lng float64, lat float64) string + func (f *FuzzyFinder) GetTimezoneNames(lng float64, lat float64) ([]string, error) + func (f *FuzzyFinder) TimezoneNames() []string + type Option struct + DropPBTZ bool + type OptionFunc = func(opt *Option)