Skip to content

Instantly share code, notes, and snippets.

@ratchetwrench
Created October 25, 2017 23:01
Show Gist options
  • Save ratchetwrench/42f569885508a1f5fa71827d464fe3f9 to your computer and use it in GitHub Desktop.
Save ratchetwrench/42f569885508a1f5fa71827d464fe3f9 to your computer and use it in GitHub Desktop.
Get geolocation information from a zipcode.
"""Get geolocation information from a zipcode.
https://pypi.python.org/pypi/zipcode
"""
import zipcode
def location_from_zipcode(zip=None):
return zipcode.isequal(zip).location_text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment