Skip to content

This flask app displays the walk safety between the user's start and end points (in manhattan).

License

Notifications You must be signed in to change notification settings

allisoncstafford/walk-flask-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WalkSafe Flask App

Purpose

This repo contains a flask app that, when deployed, allows users to mark their start and end location on a Google Map, and then displays a map of the relative walk safety along the route recommended by Google's Route API.

How it works

  1. The user inputs the start and end locations

  2. The app calls the Dark Sky API for the day's weather information and Google Maps API for the recommended route.

  3. The locations and weather data are fed to the model to predict for each location. (Learn more about the model in this [repo] https://github.com/allisonhonold/walk_risk_engine)

  4. The predictions are displayed for the user along with an overall risk rating and the weather.

Requirements

This repo uses Python 3.6.0. All python packages can be found in the requirements.txt file. The requirements are in pip style, because this is supported by Heroku.

To create a new conda environment to use this repo, run:

conda create --name flask-env
conda activate flask-env
pip install -r requirements.txt

Running the Flask Application

To run in a development environment (on your local computer)

export FLASK_ENV=development
env FLASK_APP=app.py flask run

To run in a production environment (used for deployment, but test it out locally first):

export FLASK_ENV=production
python app.py

About

This flask app displays the walk safety between the user's start and end points (in manhattan).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 66.7%
  • HTML 33.3%