My solution to an interview question I faced recently.
Given two arbitrary street addresses in the continental US, calculate the list of states that the direct path between the two addresses passes through (with a reasonable tolerance for error of several miles)
External packages used: googlemaps, pygeocoder
https://pypi.python.org/pypi/googlemaps/
https://pypi.python.org/pypi/pygeocoder
From the terminal, install the 2 packages using commands below.
pip install googlemaps
pip install pygeocoder
The program takes 2 command line arguments: valid source and destination addresses
python StateLister.py "2221 Broadway St Redwood City, CA 94063" "1600 Pennsylvania Ave NW Washington, DC 20500"