latlong

command
v0.0.0-...-fcf9d3f Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2016 License: Apache-2.0 Imports: 21 Imported by: 0

README

This is the JavaScript version of github.com/bradfitz/latlong.

The Go code in this directory generates the latlong.js, which has the
timezone location data embedded. To generate it again run `make`.

See https://plus.google.com/u/0/+BradFitzpatrick/posts/XVyy1bAzkZd
for some background on the original Go version.

Documentation

Overview

Package latlong maps from a latitude and longitude to a timezone.

It uses the data from http://efele.net/maps/tz/world/ compressed down to an internal form optimized for low memory overhead and fast lookups at the expense of perfect accuracy when close to borders. The data files are compiled in to this package and do not require explicit loading.

Jump to

Keyboard shortcuts

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