Skip to main content

A package to convert ZIP codes to time zones and get geographic coordinates.

Project description

documentation status https://img.shields.io/pypi/wheel/ziptimezone.svg total PyPI downloads latest version on PyPI https://img.shields.io/badge/code%20style-black-000000.svg

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:

PyPI

Project details


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 hashes)

Uploaded Source

Built Distribution

ziptimezone-0.10.10-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page