A package to convert ZIP codes to time zones and get geographic coordinates.
Project description
This is a python package for looking up the corresponding timezone for given coordinates on earth entirely offline.
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.10.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file ziptimezone-0.10.10.tar.gz
.
File metadata
- Download URL: ziptimezone-0.10.10.tar.gz
- Upload date:
- Size: 5.6 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 | 0fe498c83e058cb7beca8b41152ee83a966a01d6035dcf8a18f64b77d2e17a27 |
|
MD5 | c47efaf5e3fa46fa33d07a7a093d6d0e |
|
BLAKE2b-256 | e434e6a1444ccf478367751cbba66af4ea25b1183591daf8c4613f850f29e3c6 |
File details
Details for the file ziptimezone-0.10.10-py3-none-any.whl
.
File metadata
- Download URL: ziptimezone-0.10.10-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 | 62d623a6f71f12fe2cbc905859211ffc43adfccf9e0153408b201476ef5b8e27 |
|
MD5 | de8978d01798b42cb1787ac13361f5b5 |
|
BLAKE2b-256 | a81ee60fd8d9ed7b3c9f4f18905ca058b842e0c69dcd5bee570e55b78dde5282 |