Skip to main content

Generate minimum sets of zip codes, based on a radius, that can be used in a series of searches to cover the entire USA

Project description

zip-code-radius
===============

:info: Generate minimum sets of zip codes, based on a radius, that
can be used in a series of searches to cover the entire USA

Features
********

* downloads an up-to-date reference set of US postal codes from
a repository hosted on ``github.com``

Installation
------------

.. code-block:: shell

pip install zip-code-radius

Usage
-----

.. code-block:: python

import sys

from zip_code_radius import solver

radius = float(sys.argv[1])

results = solver.solve(radius)

print "radius: %d, zip-codes: %d" % (radius, len(results))

Notes
-----

``zip-code-radius`` stores the US postal code data at your os temp dir (e.g. /tmp/).

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

zip-code-radius-0.0.1.tar.gz (9.8 kB view hashes)

Uploaded Source

Built Distribution

zip_code_radius-0.0.1-py2.py3-none-any.whl (10.0 kB view hashes)

Uploaded Python 2 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