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
# returns a tuple (42.377, -71.1256)
zpt.get_lat_long_for_zip('02138')
# returns 'Eastern' the timezone has been reduced to the more popular zones
# for United States Regions
zpt.get_timezone_by_zip('02138')
# returns a dictionary, {'02138': 'Eastern', '85260': 'Mountain'}
zpt.get_timezone_for_many_zips(['02138', '85260'])
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.4.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file ziptimezone-1.0.4.tar.gz
.
File metadata
- Download URL: ziptimezone-1.0.4.tar.gz
- Upload date:
- Size: 5.9 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 | 7198e172679ecee2c368ac5f4a421879dfc4172d290280650af091c02a1a1cb4 |
|
MD5 | a4c0028fff0ca638a0c2526517c7f5cb |
|
BLAKE2b-256 | c1a4ca8b617acfe061cb2dc7c7926312067c2dbb0d805fba9603235e5909660a |
File details
Details for the file ziptimezone-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: ziptimezone-1.0.4-py3-none-any.whl
- Upload date:
- Size: 8.0 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 | e686b9ebe47aa40ddcfb6567a0abdf6339a4997bf427491310c4b448809b1904 |
|
MD5 | 9a7b03c4b9f0a89a0a1b90a7ca1b99eb |
|
BLAKE2b-256 | 75569bb86fe4aeecb478db312a4bcec6b195a275c0e92288f83f47a377bc4b52 |