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-1.0.0.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file ziptimezone-1.0.0.tar.gz
.
File metadata
- Download URL: ziptimezone-1.0.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06d4768fc8cf905071cd83d5b5302b68fce4774d99fe2b3b34e510095b96eece |
|
MD5 | c694318d512f797b96b90c6b896ee05d |
|
BLAKE2b-256 | 04284ce776e410b1a3414f82c858c2cb3218258df90b98a6ccfcbdb1e6671940 |
File details
Details for the file ziptimezone-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: ziptimezone-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f21f7e67d5a10d84ef59afd9f77c97b78174ebc568d25e75df3211b229b71ff9 |
|
MD5 | bf2f68200a8091d9cab13bd3b5e5b405 |
|
BLAKE2b-256 | b8d6f282855f2bbff8a8a6dd98e6c74368279c74e2451422b6c7759ea76e958b |