Code Summary
find_store.py
uses the geopy and uszipcode libraries to convert address or zip codes to lat/long coordinates for distance comparisons
pip install -r requirements.txt
python find_store.py -h
for a list of accepted argumentspython find_store.py [ARGS]
to find the nearest store based on address or zip
Assumptions
I assumed that there would be one uniquely distinct closest store based on the precision of the distance calculations and return the result accordingly.
Testing
Run python test.py
to run the unit tests