A package to convert ZIP codes to time zones and get geographic coordinates.
Project description
This is a python package with US Zip Code convenience functions such as those listed in the examples below. It uses the geonames data, coupled with the timezonefinder package. It uses a mapping of the popular timezone regions in US, and returns the outputs accordingly.
Quick Guide:
pip install ziptimezone
import ziptimezone as zpt
zpt.get_lat_long_for_zip('02138') # returns a tuple (42.377, -71.1256)
zpt.get_timezone_by_zip('02138') # returns 'Eastern' the timezone has been reduced to the more popular zones fo United States Regions
zpt.get_timezone_for_many_zips(['02138', '85260']) # returns a dictionary, {'02138': 'Eastern', '85260': 'Mountain'}
For more refer to the Documentation.
Also check:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ziptimezone-0.10.11.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for ziptimezone-0.10.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13a30711eca053b792ac7ce654c5a1912bc36d8d87e68ae62c77281ef10c0da8 |
|
MD5 | 7fe7e318159c570e2510e117430ef78d |
|
BLAKE2b-256 | 82019614560987271d2b73e89c6f222404c19157d7d16d4b9e1648f47cd9ad83 |