Skip to content

john-ramsey/fast_food_dash

Repository files navigation

This project utilizes SafeGraph location data to show visit trends in the 2021 year for various fast food brands in Los Angeles. Through hover responsive callbacks and Uber's H3 "geo-hexes" the data can be analyized at a more precise geographic level.

The repository consists of:

  • main.py which initializes and lays out the dashboard as well as operates the callbacks
  • components.py provides helper functions and classes which make the objects on the dashboard
  • metrics.csv and brands.csv sudo databases represented as comma separated values for easy manipulation
  • Dockerfile provided for easy image building
  • data/ summarized data files of selected SafeGraph data fields. Please note this data has been modified for the purposes of this project.
  • docs/ project & code documentation

Features

  • Hover Responsive Callbacks with H3 Geo-Hexes
  • Efficient demonstration of 2021 fast food trends in Los Angeles
  • Clean One-Page Layout
  • Dockerfile provided for easy deployment

App Screenshot

Running Locally

Clone the project

  git clone https://github.com/john-ramsey/fast_food_dash

Go to the project directory

  cd fast_food_dash

Install dependencies

  pip install -r requirements.txt

Start the server

  python3 main.py

Note that you may have to change the host and port to run locally depending on your OS.

Environment Variables

To run this project, you will need to add a mapbox key environment variable to your .env file. More information on mapbox and obtaining a free key can be found here.

mapbox_key

Acknowledgements

License

GNU v3

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published