Skip to content

kyleslugg/NYC-Food-Access-WEBMAP

Repository files navigation

NYC-Food-Access

Kyle Slugg

Introduction

This repository maps access to fresh food across New York City, in relation to prominent markers of socioeconomic (dis)advantage at the Census Tract level, using data from OpenStreetMap, OpenRouteService, and U.S. Census Bureau American Community Survey 5-Year Estimates of the 2014--2018 vintage. Information on process can be found in Jupyter notebooks in the "Notebooks" folder.

A more streamlined, static, web-based version of this project is available under the "nyc-food-access-web" folder, as well as at kyleslugg.com/food-access

The following packages must be installed to pull, process, and map these data:

  • numpy
  • pandas
  • geopandas
  • folium
  • flask
  • requests

Keys to the following APIs should be supplied in a document entitled "secrets.py," using the included "secrets_template.py" template.

When ready, please run "RUN_ME.py" to begin pulling and mapping data. If data have already been obtained, you may choose at startup to refresh data or use existing files; if no data have been obtained, either option will pull data.

Please note that, due to rate limiting, retrieving isochrones from the OpenRouteService API will take at least 10 minutes upon the initial run. Information on your progress is printed to the terminal.

Data Sources

Location of NYC Grocery Stores, obtained via Open Street Map Overpass API

5-, 7-, and 10-minute walking isochrones for NYC grocery stores, obtained via Openrouteservice’s Isochrones API

American Community Survey 5-Year Estimates, 2014 – 2018, obtained via Census Bureau API

New York City Census Tracts, TIGER Shapefile, obtained from Census Bureau Geography Program and trimmed to city using QGIS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages