geo

package
v0.0.0-...-a0f3f1a Latest Latest
Warning

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

Go to latest
Published: May 17, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleGeoLookup

type GoogleGeoLookup struct {
	// contains filtered or unexported fields
}

GoogleGeoLookup to lookup timezone details

func NewGoogleGeoLookup

func NewGoogleGeoLookup(googleAPIKey string) *GoogleGeoLookup

NewGoogleGeoLookup constructs a new GoogleGeoLookup instance

func (*GoogleGeoLookup) FindTimezoneForLocation

func (g *GoogleGeoLookup) FindTimezoneForLocation(latitude, longitude float64) (*TimezoneInfo, error)

FindTimezoneForLocation get timezone for a given location

func (*GoogleGeoLookup) Initialize

func (g *GoogleGeoLookup) Initialize() error

Initialize a GoogleGeoLookup instance

type TimezoneInfo

type TimezoneInfo struct {
	TimeZoneID   string
	TimeZoneName string
}

TimezoneInfo has timezone details

Jump to

Keyboard shortcuts

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