Visualize where new businesses are created in the city
-
Create a python virtualenv with virtualenvwrapper
mkvirtualenv chicago-new-business workon chicago-new-business
-
Install python dependencies
pip install -r requirements/python
-
Sign up for Google Maps Geocoding API and get key. Store key in src/google_api.py as below
google_api_key = "YOUR_API_KEY"
-
Run the data analysis pipeline using flo
flo run
-
Enjoy the static figures.
open data/*.png
-
View the site.
cd web && python -m SimpleHTTPServer # open http://localhost:8000 in your browser
-
Install topojson command-line application.
-
Run following commands in /data/boundaries directory.
# The -t_srs crs:84 specifies a projection to use. If you leave this part off, you won't be dealing with degrees in your output document. ogr2ogr -f "GeoJSON" -t_srs crs:84 neighborhoods.json Neighborhoods_2012b.shp # Convert to TOPOJSON; specify ID and retain property with -p topojson -o neighborhoods.topojson --id-property PRI_NEIGH -p SEC_NEIGH -- neighborhoods.json