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.
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.
Available online at https://foodsimsf.com.
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/.
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
This can be deployed to any static file serving system.
No automated testing standards enforced by jsdoc encouraged.
Code available under the MIT license (see LICENSE.md
). Uses the following:
- OpenStreetMap data under the ODBL license
- proj4js under the MIT license
- PapaParse under the MIT license
- Some StackOverflow used under the CC-BY-SA license (superliminary, Nathan Lippi)
- ColorBrewer
- Python
- Jupyter under the BSD license
- Shapely under the BSD license
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/
Note that this project uses the following:
- Pixel art portrait generator by V-ktor under the CC-BY-4.0 License.
- Brush Strokes by billraydrums and texasradiofish under the CC BY-NC 3.0 License.
- Pixel art set of modern various buildings by Geryjj. Note that this is a paid license and derivate work may not be able to use it without further licensing.
- Pixel Art Style Icons by Owncham. Note that this is a paid license and derivate work may not be able to use it without further licensing.