Documentation
¶
Overview ¶
Package tzf is a package convert (lng,lat) to timezone.
Inspired by timezonefinder https://github.com/jannikmi/timezonefinder, fast python package for finding the timezone of any point on earth (coordinates) offline.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finder ¶
type Finder struct {
// contains filtered or unexported fields
}
func (*Finder) GetTimezoneLoc ¶
Example ¶
package main
import (
"fmt"
"github.com/ringsaturn/tzf"
)
var f *tzf.Finder
func main() {
fmt.Println(f.GetTimezoneLoc(116.6386, 40.0786))
}
Output: Asia/Shanghai <nil>
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
reducePolygon
command
|
|
|
tzjson2pb
command
CLI tool to convert GeoJSON based Timezone boundary to tzf's Probuf format.
|
CLI tool to convert GeoJSON based Timezone boundary to tzf's Probuf format. |
Click to show internal directories.
Click to hide internal directories.