adiXcodr / SafeMaps

A Web App made for safe navigation during a Pandemic

Home Page:https://safemaps.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SAFE MAPS

A Web App made for safe navigation during a Pandemic

Technologies used

  • Python
  • networkx
  • flask
  • HTML, CSS

Demo

https://safemaps.herokuapp.com/

Project Structure

This project has three major parts :

  1. app.py - This contains Flask APIs that receives movie a review through GUI or API calls, computes the precited value based on our model and returns it.
  2. index.html - The HTML template to allow user to enter the movie review.

Steps to run the application

  1. Run app.py using the command below to start Flask API
python app.py
  1. Navigate to URL http://localhost:5000

  2. To close the server, press Ctrl+C


Terms

We will use some parameters as follows:

  1. Density of people affected (DPA) on each edge between two nodes [people affected/length of path]
  2. Traffic Intensity Level (TIL)
  3. Crime Rate Level (CRL)
  4. Distance between two nodes (DIS)

Plan

  1. Create a network of places in a city and make a connected graph of say ‘n’ predefined places.
  2. Assign the number of people and number of people infected to each edge.
  3. Assign TIL, CRL and DIS to each edge randomly.
  4. Assign the Distance to each edge randomly.
  5. We make an interface between the user and the computer using a suitable UI platform. The user will select the source and destination from the given places.
  6. Find all possible paths between the two nodes and find the paths for which the sum of DPA is less.
  7. If there are multiple paths for which the difference in DPA is negligible (<=5), then look for the time in system clock.
  8. If it’s Night time, then look for the paths in which crime less and if it’s daytime then look for the paths in which TIL is less.
  9. Till now we might have achieved a single path or few paths in which the difference between DPA and the difference between TIL (<=2) or the difference between CRL (<=1) is negligible.
  10. Among the paths obtained, find the path with minimum distance (DIS)
  11. The path obtained will be our output.

Author

About

A Web App made for safe navigation during a Pandemic

https://safemaps.herokuapp.com

License:GNU Lesser General Public License v3.0


Languages

Language:Python 56.0%Language:CSS 23.6%Language:HTML 20.4%