Skip to content

Server, CLI, and library that can turn an SF street address into an SF district and neighborhood.

Notifications You must be signed in to change notification settings

YIMBYdata/neighborhood

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neighborhood

Server, CLI, and library that can turn an SF street address into an SF district and neighborhood.

To regenerate the data, download the "Street Data Extract" data set and run:

cd data
./join_data.py elections-data.txt precincts.tsv > ../src/data/neighborhood_data.tsv

Note that if the elections data set adds precincts, these must be manually added to precincts.tsv.

This can be run on the command line via:

. .venv/bin/activate
./src/find_neighborhood.py "123 Main St"

This can be run as a server locally (hot reload) via:

make run

And accessed via:

http://localhost:8080/?address=123+Main+St

This can be run as a Docker container:

make run_docker

About

Server, CLI, and library that can turn an SF street address into an SF district and neighborhood.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published