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.1.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file ziptimezone-1.0.1.tar.gz
.
File metadata
- Download URL: ziptimezone-1.0.1.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 | a281d7b30cb5f8ffe0f00d824e82c315191402d2f54f9418bc93cfd56e798c06 |
|
MD5 | f06764454b59522fa15e3a90efd809cd |
|
BLAKE2b-256 | 1848cd954db8f1eddc2e311acc537dc46e8da3911b788663fe8cc6f4cf167c76 |
File details
Details for the file ziptimezone-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: ziptimezone-1.0.1-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 | 9170051c8c37e2f4b874fff5a0c03383b32f2aa6461394c431346301d294f5b1 |
|
MD5 | e1e55a85874288bc043e358786b38ff3 |
|
BLAKE2b-256 | edbbf38811e5d528cd865e80294cd97247b06f5b39ac6f36320d984b004f5a9c |