Python library to look up timezone from lat / long offline
Project description
pytzwhere [](https://travis-ci.org/pegler/pytzwhere) [](https://coveralls.io/r/pegler/pytzwhere)
=========
pytzwhere is a Python library to lookup the timezone for a given lat/lng entirely offline.
Version 3.0 fixes how `pytzwhere` deals with [holes](https://github.com/pegler/pytzwhere/issues/34) in timezones. It is recommended that you use version 3.0.
It is a port from https://github.com/mattbornski/tzwhere with a few improvements. The underlying timezone data is based on work done by [Eric Muller](http://efele.net/maps/tz/world/)
If used as a library, basic usage is as follows:
>>> from tzwhere import tzwhere
>>> tz = tzwhere.tzwhere()
>>> print tz.tzNameAt(35.29, -89.66)
America/Chicago
The polygons used for building the timezones are based on VMAP0. Sometimes points are outside a VMAP0 polygon, but are clearly within a certain timezone (see also this [discussion](https://github.com/mattbornski/tzwhere/issues/8)). As a solution you can search for the closest timezone within a user defined radius.
Dependencies:
* `numpy`
* `shapely`
=========
pytzwhere is a Python library to lookup the timezone for a given lat/lng entirely offline.
Version 3.0 fixes how `pytzwhere` deals with [holes](https://github.com/pegler/pytzwhere/issues/34) in timezones. It is recommended that you use version 3.0.
It is a port from https://github.com/mattbornski/tzwhere with a few improvements. The underlying timezone data is based on work done by [Eric Muller](http://efele.net/maps/tz/world/)
If used as a library, basic usage is as follows:
>>> from tzwhere import tzwhere
>>> tz = tzwhere.tzwhere()
>>> print tz.tzNameAt(35.29, -89.66)
America/Chicago
The polygons used for building the timezones are based on VMAP0. Sometimes points are outside a VMAP0 polygon, but are clearly within a certain timezone (see also this [discussion](https://github.com/mattbornski/tzwhere/issues/8)). As a solution you can search for the closest timezone within a user defined radius.
Dependencies:
* `numpy`
* `shapely`
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tzwhere-3.0.tar.gz
(4.9 kB
view details)
File details
Details for the file tzwhere-3.0.tar.gz.
File metadata
- Download URL: tzwhere-3.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
328a01b46de50e023632bd9f236d96916eda2bdc1b4a3921b09106271e00f75d
|
|
| MD5 |
07b6803aa3efb26c3229988c54830f74
|
|
| BLAKE2b-256 |
8bc873baa9ccc1dc345983e5fdd67a2a344701c07d7de662195601463b45b5c1
|