Skip to content

sampottinger/sf_food_sim

Repository files navigation

SF Food Sim

In-browser demo simulation of eating habits and food purchasing decisions in San Francisco under the MIT license as included. See it at https://foodsimsf.com.


Purpose

This interactive simulation allows players to explore different potential futures to food access in San Francisco using OpenStreetMap data. This simple game estimates an approximate set of "residential" areas and if they would "choose" between either fast food or a grocery store based on proximity and certain behavior variables controllable by the player like how much further a simulated person would be willing to go to get to a grocery store compared to fast food.


Usage

Available online at https://foodsimsf.com.


Local Development Environment

Simply run any local HTTP server capable of serving static files in the viz folder. For example, use python -m http.server and navigate to http://localhost:8000/.


Updating the dataset

The data processing pipeline providing source information for the visualization can be run with the following:

pip install -r requirements.txt
bash run_pipeline.sh

Deployment

This can be deployed to any static file serving system.


Development Standards

No automated testing standards enforced by jsdoc encouraged.


Open Source

Code available under the MIT license (see LICENSE.md). Uses the following:

This SF Food Sim database (viz/combined.csv) is made available under the Open Database License: http://opendatacommons.org/licenses/odbl/1.0/. Any rights in individual contents of the database are licensed under the Database Contents License: http://opendatacommons.org/licenses/dbcl/1.0/


Assets licensing

Note that this project uses the following: