Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.05 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.05 KB

Nearby Zip Code Finder

Finds zip codes within a specified distance of a given list of zip codes from a csv file.


Usage

foo@bar:~$ python radius_zips.py test_file.csv # Finds zip codes within 10 miles of described cities
foo@bar:~$ python radius_zips.py -r 30 test_file.csv # Finds zip codes within 30 miles
foo@bar:~$ python radius_zips.py test_file.csv out.csv # Sets output to out.csv
foo@bar:~$ python radius_zips.py -h # Gets Help File

Installation

  1. Clone this repo
  2. Create a virtual environment, and run pip -r requirements.txt to install the required dependencies.
  3. Create a secrets.json file containing the headers described here.
{
  "x-rapidapi-key": "Your Key Here",
  "x-rapidapi-host": "zip-code-distance-radius.p.rapidapi.com"
}

Created by @hlevenberg and @rgarber11.