Skip to content

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

License

Notifications You must be signed in to change notification settings

simon-wenmouth/zip-code-radius

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zip-code-radius

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

pip install zip-code-radius

Usage

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

Tests

Unit Tests

pip install nose

nosetests

To run tox:

Tox

pip install tox

tox setup.py

Notes

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages