irr / latlong Goto Github PK
View Code? Open in Web Editor NEWThis project forked from bradfitz/latlong
The latlong package maps from a latitude and longitude to a timezone.
License: Apache License 2.0
This project forked from bradfitz/latlong
The latlong package maps from a latitude and longitude to a timezone.
License: Apache License 2.0
This is a Go package which maps a (lat, long) to a timezone. My motivation was figuring out the UTC time of a JPG with EXIF metadata containing GPS coordinates and local time, but no timezone offset. This is a surprising number of photos. I built this to improve sorting in Camlistore, especially when photos are intermixed with tweets, checkins, etc, but it should be generally applicable. See docs at http://godoc.org/github.com/bradfitz/latlong It tries to have a small binary size (~360 KB), low memory footprint (~1 MB), and incredibly fast lookups (~0.5 microseconds). It does not try to be perfectly accurate when very close to borders. To rebuild the data files, see the Makefile (or just run make). You'll need the data files unzip to the "world" directory. Some background: https://plus.google.com/u/0/+BradFitzpatrick/posts/XVyy1bAzkZd Another image of the underlying data structure: http://i.imgur.com/Rt8bLSD.png ... the tile borders are only there for debugging, to show areas with only one timezone. Tiles without borders around them still work; at that level, the small possible bitmap is used for lookup.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.