Skip to content

Gredelston/neighborhood-targeting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Setup

This setup assumes that you already have a working installation of Python.

You will need to install the libraries shapefile and shapely. Both are available via pip:

> python -m pip install shapefile
> python -m pip install shapely

Usage

Run the script from the command line, passing in two arguments: latitude and longitude. (No comma, please!)

If neither argument is passed, it defaults to Fuji Café near the Pearl Street Mall.

If the point is found to lie within any neighborhoods, then it will print metadata about the neighborhood (name, city, state, county, Region ID).

> python main.py 40.018423 -105.279782
Neighborhood found: Whittier, City of Boulder, CO — Boulder County (Region ID 416094)

Upcoming Features

  • Right now the script is configured to only search within the state of Colorado. It would be nice to search other states, too.

References

Neighborhood boundary files come from Zillow, and are used under the Creative Commons license.

About

Given a lat/long pair, determine which neighborhood it resides in.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages